diff options
author | Vincent Petry <vincent@nextcloud.com> | 2023-01-19 10:13:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 10:13:10 +0100 |
commit | 617088835f4f86a0605bcb0447d98dadbff616a4 (patch) | |
tree | afadd5ebf6f9f32a8ea42aaad4619ee76efca493 /lib | |
parent | 608e038e6df32fd1f674aa9c93dcd96973da277a (diff) | |
parent | 34a93a0e12a2e1cb318093d9787fe929daee65e5 (diff) | |
download | nextcloud-server-617088835f4f86a0605bcb0447d98dadbff616a4.tar.gz nextcloud-server-617088835f4f86a0605bcb0447d98dadbff616a4.zip |
Merge pull request #35946 from nextcloud/backport/33813/stable24
[stable24] Compare lowercase email when updating from ldap
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/User/User.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php index 0a51622428b..23b24f0481b 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -190,7 +190,7 @@ class User implements IUser { $this->setPrimaryEMailAddress(''); } - if ($oldMailAddress !== $mailAddress) { + if ($oldMailAddress !== strtolower($mailAddress)) { $this->triggerChange('eMailAddress', $mailAddress, $oldMailAddress); } } |