Skip to content

Commit 96675cc

Browse files
authored
Merge pull request #33920 from nextcloud/backport/33813/stable24
[stable24] Compare lowercase email when updating from ldap
2 parents 5c9ef92 + 7ea5b39 commit 96675cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/User/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function setSystemEMailAddress(string $mailAddress): void {
190190
$this->setPrimaryEMailAddress('');
191191
}
192192

193-
if ($oldMailAddress !== $mailAddress) {
193+
if ($oldMailAddress !== strtolower($mailAddress)) {
194194
$this->triggerChange('eMailAddress', $mailAddress, $oldMailAddress);
195195
}
196196
}

0 commit comments

Comments
 (0)