Skip to content

Commit 6e3b26f

Browse files
authored
Merge pull request #33923 from nextcloud/backport/33813/stable22
[stable22] Compare lowercase email when updating from ldap
2 parents 3278dd6 + 9bca0b3 commit 6e3b26f

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
@@ -193,7 +193,7 @@ public function setSystemEMailAddress(string $mailAddress): void {
193193
$this->setPrimaryEMailAddress('');
194194
}
195195

196-
if ($oldMailAddress !== $mailAddress) {
196+
if ($oldMailAddress !== strtolower($mailAddress)) {
197197
$this->triggerChange('eMailAddress', $mailAddress, $oldMailAddress);
198198
}
199199
}

0 commit comments

Comments
 (0)