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

Check email and username for duplicated if isLoginWithEmailAllowed #27408

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

rmartinc
Copy link
Contributor

@rmartinc rmartinc commented Mar 1, 2024

Closes #27297

Email and username validators check duplicates in the other attribute if isLoginWithEmailAllowed is enabled. The duplicated username validator was working incorrectly, fixed now. I decided to add the duplicated validators to the ADMIN_API too. The user endpoints try to return the same errors as before (there are very little differences but more or less the same). Tests added to two contexts: admin api and update profile action.

Closes keycloak#27297

Signed-off-by: rmartinc <rmartinc@redhat.com>
@pedroigor pedroigor merged commit f970803 into keycloak:main Mar 1, 2024
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check for duplicated usernames and emails when Login with email option is enabled
2 participants