Skip to content

Commit

Permalink
Merge pull request #35946 from nextcloud/backport/33813/stable24
Browse files Browse the repository at this point in the history
[stable24] Compare lowercase email when updating from ldap
  • Loading branch information
PVince81 authored Jan 19, 2023
2 parents 608e038 + 34a93a0 commit 6170888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function setSystemEMailAddress(string $mailAddress): void {
$this->setPrimaryEMailAddress('');
}

if ($oldMailAddress !== $mailAddress) {
if ($oldMailAddress !== strtolower($mailAddress)) {
$this->triggerChange('eMailAddress', $mailAddress, $oldMailAddress);
}
}
Expand Down

0 comments on commit 6170888

Please sign in to comment.