Merge pull request #33922 from nextcloud/backport/33813/stable23

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

View file

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