diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-06-30 00:38:28 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-06-30 01:03:44 +0200 |
commit | ad0a11b2bf7fd779d609a99714bdb396c1605740 (patch) | |
tree | 3a03e3fcf064eff7b5f5e2c99e86f0a930c91374 /lib/private/Accounts | |
parent | a0752543d843fc438c03b0c72e3872c9ea1175e1 (diff) | |
download | nextcloud-server-ad0a11b2bf7fd779d609a99714bdb396c1605740.tar.gz nextcloud-server-ad0a11b2bf7fd779d609a99714bdb396c1605740.zip |
cleanup
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Accounts')
-rw-r--r-- | lib/private/Accounts/AccountManager.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php index b042309dd3a..9fc5accfa08 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -228,7 +228,6 @@ class AccountManager implements IAccountManager { $updated = true; if ($oldUserData !== $data) { - $this->updateExistingUser($user, $data); } else { // nothing needs to be done if new and old data set are the same @@ -297,7 +296,6 @@ class AccountManager implements IAccountManager { $userDataArray = $this->importFromJson($accountData[0]['data'], $uid); if ($userDataArray === null || $userDataArray === []) { - return $this->buildDefaultUserRecord($user); } @@ -339,7 +337,7 @@ class AccountManager implements IAccountManager { /** * check if we need to ask the server for email verification, if yes we create a cronjob - + * */ protected function checkEmailVerification(IAccount $updatedAccount, array $oldData): void { try { @@ -369,14 +367,13 @@ class AccountManager implements IAccountManager { /** * make sure that all expected data are set - + * */ protected function addMissingDefaultValues(array $userData): array { foreach ($userData as $i => $value) { if (!isset($value['verified'])) { $userData[$i]['verified'] = self::NOT_VERIFIED; } - } return $userData; @@ -612,7 +609,6 @@ class AccountManager implements IAccountManager { } public function updateAccount(IAccount $account): void { - $this->testValueLengths(iterator_to_array($account->getAllProperties()), true); try { $property = $account->getProperty(self::PROPERTY_PHONE); @@ -657,4 +653,4 @@ class AccountManager implements IAccountManager { $this->updateUser($account->getUser(), $data, true); } -}
\ No newline at end of file +} |