aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Setup.php
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-09-21 17:44:32 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2024-02-13 21:06:30 +0100
commit839ddaa3547bb0042b6225edf2df7bff1831cdd5 (patch)
tree353d49dd856548ca243bf1b9e15274372bbc518b /lib/private/Setup.php
parentb63abdae8c1708693addf1dc3b2f862131e0299d (diff)
downloadnextcloud-server-839ddaa3547bb0042b6225edf2df7bff1831cdd5.tar.gz
nextcloud-server-839ddaa3547bb0042b6225edf2df7bff1831cdd5.zip
feat: rename users to account or person
Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r--lib/private/Setup.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 650dca97067..5bfb64cb513 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -265,7 +265,7 @@ class Setup {
$dbType = $options['dbtype'];
if (empty($options['adminlogin'])) {
- $error[] = $l->t('Set an admin username.');
+ $error[] = $l->t('Set an admin account name.');
}
if (empty($options['adminpass'])) {
$error[] = $l->t('Set an admin password.');
@@ -311,7 +311,7 @@ class Setup {
$dbType = 'sqlite3';
}
- //generate a random salt that is used to salt the local user passwords
+ //generate a random salt that is used to salt the local passwords
$salt = $this->random->generate(30);
// generate a secret
$secret = $this->random->generate(48);
@@ -345,7 +345,7 @@ class Setup {
return $error;
} catch (Exception $e) {
$error[] = [
- 'error' => 'Error while trying to create admin user: ' . $e->getMessage(),
+ 'error' => 'Error while trying to create admin account: ' . $e->getMessage(),
'exception' => $e,
'hint' => '',
];
@@ -365,13 +365,13 @@ class Setup {
return $error;
}
- $this->outputDebug($output, 'Create admin user');
- //create the user and group
- $user = null;
+ $this->outputDebug($output, 'Create admin account');
+ //create the and group
+ $ = null;
try {
$user = Server::get(IUserManager::class)->createUser($username, $password);
if (!$user) {
- $error[] = "User <$username> could not be created.";
+ $error[] = "Account <$username> could not be created.";
return $error;
}
} catch (Exception $exception) {
@@ -428,7 +428,7 @@ class Setup {
$userSession->login($username, $password);
$user = $userSession->getUser();
if (!$user) {
- $error[] = "No user found in session.";
+ $error[] = "No account found in session.";
return $error;
}
$userSession->createSessionToken($request, $user->getUID(), $username, $password);