Merge pull request #33813 from nextcloud/fix/infinite_email_change_notification

Compare lowercase email when updating from ldap
This commit is contained in:
Louis 2022-09-06 17:10:08 +02:00 committed by GitHub
commit 1f967175f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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