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

[stable24] Compare lowercase email when updating from ldap
This commit is contained in:
Vincent Petry 2023-01-19 10:13:10 +01:00 committed by GitHub
commit 617088835f
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);
}
}