0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-03-16 17:24:10 +00:00
nextcloud_server/lib/private/User
Louis Chemineau 6c11944679 I dug into it again, and the issue is much simpler than I previously though.
- LDAP has an email address with capital letters
- NC store this address in lower case
- When the user logs in, we compare the [stored email with the new lower case email](https://github.com/nextcloud/server/blob/master/lib/private/AllConfig.php#L259-L261) before storing it. Here, both email will be the same, so we won't store the new email address with upper case letters. Which is what we want.
- We then [compare emails as they are before triggering an event](https://github.com/nextcloud/server/blob/master/lib/private/User/User.php#L202-L204), they won't match, so the user will receive an email signaling an email change every time he logs in.

The fix is to compare the old email with the new lower case email before sending the event.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-09-06 13:18:07 +00:00
..
Listeners Make Color class public 2022-07-05 14:44:44 +02:00
Backend.php Update php licenses 2021-06-04 22:02:41 +02:00
Database.php Fix creation of new user and display the correct error message 2022-08-22 19:13:11 +00:00
DisplayNameCache.php Make DisplayNameCache return null if user doesn't exists 2022-08-16 14:10:05 +02:00
LazyUser.php Make DisplayNameCache return null if user doesn't exists 2022-08-16 14:10:05 +02:00
LoginException.php Update php licenses 2021-06-04 22:02:41 +02:00
Manager.php Make DisplayNameCache return null if user doesn't exists 2022-08-16 14:10:05 +02:00
NoUserException.php Update php licenses 2021-06-04 22:02:41 +02:00
Session.php Log if cookie login failed with token mismatch or session unavailability 2022-08-31 14:55:51 +02:00
User.php I dug into it again, and the issue is much simpler than I previously though. 2022-09-06 13:18:07 +00:00