Merge pull request #33923 from nextcloud/backport/33813/stable22

[stable22] Compare lowercase email when updating from ldap
pull/34519/head
blizzz 2 years ago committed by GitHub
commit 6e3b26fd2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -193,7 +193,7 @@ class User implements IUser {
$this->setPrimaryEMailAddress('');
}
if ($oldMailAddress !== $mailAddress) {
if ($oldMailAddress !== strtolower($mailAddress)) {
$this->triggerChange('eMailAddress', $mailAddress, $oldMailAddress);
}
}

Loading…
Cancel
Save