Merge pull request #33920 from nextcloud/backport/33813/stable24

[stable24] Compare lowercase email when updating from ldap
This commit is contained in:
Carl Schwan 2022-09-07 12:17:57 +02:00 committed by GitHub
commit 96675ccab2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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