diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-01-07 11:46:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 11:46:12 +0100 |
commit | e65431d0495cb058bebe75d5e8b9ab87110cf97f (patch) | |
tree | d61e59c772b3b47534ccf1f6b3f10f620ee702cf /lib | |
parent | 1a235f5bafaed0d3998d6a9d7a5e0fa74de0c944 (diff) | |
parent | 19a3656fd95ea2a3ff5d00eb4332b0c8c6f71ea9 (diff) | |
download | nextcloud-server-e65431d0495cb058bebe75d5e8b9ab87110cf97f.tar.gz nextcloud-server-e65431d0495cb058bebe75d5e8b9ab87110cf97f.zip |
Merge pull request #30491 from nextcloud/fix/30374/email-verification
Fix email verification
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Accounts/AccountManager.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php index 2c7641243fa..cdfb123179e 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -388,7 +388,10 @@ class AccountManager implements IAccountManager { } catch (PropertyDoesNotExistException $e) { return; } - $oldMail = isset($oldData[self::PROPERTY_EMAIL]) ? $oldData[self::PROPERTY_EMAIL]['value']['value'] : ''; + + $oldMailIndex = array_search(self::PROPERTY_EMAIL, array_column($oldData, 'name'), true); + $oldMail = $oldMailIndex !== false ? $oldData[$oldMailIndex]['value'] : ''; + if ($oldMail !== $property->getValue()) { $this->jobList->add( VerifyUserData::class, |