diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-26 15:20:41 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-04-28 23:41:37 -0300 |
commit | 5fa0e6df39f7e9df5a9f59b5d8b2c4b507975d41 (patch) | |
tree | 4b28ef2b42b1505a3a3555ac1d3e273d0a9f2438 /lib/private/Accounts/AccountManager.php | |
parent | 981c110f7ee494185df50563b986bebf4d78293d (diff) | |
download | nextcloud-server-5fa0e6df39f7e9df5a9f59b5d8b2c4b507975d41.tar.gz nextcloud-server-5fa0e6df39f7e9df5a9f59b5d8b2c4b507975d41.zip |
fix email verification status
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/private/Accounts/AccountManager.php')
-rw-r--r-- | lib/private/Accounts/AccountManager.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php index bd23f6289c0..41fdad148aa 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -97,7 +97,7 @@ class AccountManager { if (empty($userData)) { $this->insertNewUser($user, $data); } elseif ($userData !== $data) { - $this->checkEmailVerification($userData, $data, $user); + $data = $this->checkEmailVerification($userData, $data, $user); $data = $this->updateVerifyStatus($userData, $data); $this->updateExistingUser($user, $data); } else { @@ -147,6 +147,7 @@ class AccountManager { * @param $oldData * @param $newData * @param IUser $user + * @return array */ protected function checkEmailVerification($oldData, $newData, IUser $user) { if ($oldData[self::PROPERTY_EMAIL]['value'] !== $newData[self::PROPERTY_EMAIL]['value']) { @@ -160,7 +161,10 @@ class AccountManager { 'lastRun' => time() ] ); + $newData[AccountManager::PROPERTY_EMAIL]['verified'] = AccountManager::VERIFICATION_IN_PROGRESS; } + + return $newData; } /** |