Skip to content

Commit

Permalink
Merge pull request #33813 from nextcloud/fix/infinite_email_change_no…
Browse files Browse the repository at this point in the history
…tification

Compare lowercase email when updating from ldap
  • Loading branch information
artonge authored Sep 6, 2022
2 parents ff49fa4 + 6c11944 commit 1f96717
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 @@ -199,7 +199,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 1f96717

Please sign in to comment.