Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue for authenticated by email users who change their email #115

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

emmdurin
Copy link
Contributor

@emmdurin emmdurin commented Apr 2, 2024

When a user logs in using email address instead of username, then change his email, he is no longer logged in but also can't log out. As searches in LDAP were based on the same credential than supplied when logging in, theses searches no longer returned anything if user email has changed.

With this fix, user is searched using email only first time just after at log-in, then username is recorded as credential for the rest of the session (as if the user has logged in using username), which allows further email change without issue.

@emmdurin emmdurin requested a review from f-necas April 2, 2024 19:50
@emmdurin emmdurin merged commit 5039f9e into main Apr 3, 2024
3 checks passed
@f-necas f-necas deleted the email_authenticated_issue_after_email_change branch June 26, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants