Skip to content

is-51676 alter emailExistsMessage message - #51677

Open
robson90 wants to merge 1 commit into
keycloak:mainfrom
robson90:is-51676-fix-email-exists-message
Open

is-51676 alter emailExistsMessage message#51677
robson90 wants to merge 1 commit into
keycloak:mainfrom
robson90:is-51676-fix-email-exists-message

Conversation

@robson90

Copy link
Copy Markdown
Contributor

Closes: #51676

@robson90
robson90 requested a review from a team as a code owner August 12, 2026 11:28
Copilot AI balanced review requested due to automatic review settings August 12, 2026 11:28
@robson90
robson90 requested a review from a team as a code owner August 12, 2026 11:28
@robson90
robson90 force-pushed the is-51676-fix-email-exists-message branch from 2df0820 to 5cbf595 Compare August 12, 2026 11:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates emailExistsMessage to distinguish login and account contexts.

Changes:

  • Adds context-specific messages for login and account themes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
themes/src/main/resources/theme/base/login/messages/messages_en.properties Updates the login-theme message.
themes/src/main/resources/theme/base/account/messages/messages_en.properties Updates the account-theme message.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread themes/src/main/resources/theme/base/account/messages/messages_en.properties Outdated
Copilot AI review requested due to automatic review settings August 12, 2026 11:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 12, 2026 12:20
@robson90
robson90 force-pushed the is-51676-fix-email-exists-message branch from 5cbf595 to f25e551 Compare August 12, 2026 12:20
@robson90
robson90 requested review from a team as code owners August 12, 2026 12:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings August 12, 2026 12:43
@robson90
robson90 force-pushed the is-51676-fix-email-exists-message branch from f25e551 to c13d6bd Compare August 12, 2026 12:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.

Suppressed comments (1)

testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/federation/ldap/LDAPProvidersIntegrationTest.java:1000

  • Updating this LDAP login assertion leaves registerExistingLdapUser() at line 701 expecting the old text. That test also renders emailExistsMessage through the login theme, so it will now fail and its assertion must be updated too.
        Assertions.assertEquals("This email is already associated with an existing account.", loginPage.getError());

@stianst stianst left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Email already exists is not ideal, but i don't see why the message should be different in the login and the account themes. You're basically just stating the same thing, just with slightly different words after all.

@robson90

Copy link
Copy Markdown
Contributor Author

Obviously you are right.

I came across this, some weeks ago, when a customer was complaining, that the Error Message in the Login UI (register) was misleading in German. Email already exists -> This Email is already registered
Please see: https://github.com/keycloak/keycloak/pull/50604/changes#diff-acb3c26f89ea58820743142a1160c75364bdb9fec8620bc0dc5b13b2e8229e51

This Email is already registered doesn't fit the context of the account console, when a user tries to change its Email.
So I went with: This Email is already existing -> https://github.com/keycloak/keycloak/pull/50604/changes#diff-2584f7219e1e2f037a822968bd733a80c80af83c3a1da36e7f03e96d273fc1a0

@ahus1 asked me if it would make sense to change the English messages accordingly. So I thought about what the context for each scenario is.

Im fine if you would like to keep the messages in sync. Then I will change my PR accordingly.

@stianst

stianst commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

I'd just go with This email is already associated with an existing account. both places

Signed-off-by: Robin Meese <39960884+robson90@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 13, 2026 08:04
@robson90
robson90 force-pushed the is-51676-fix-email-exists-message branch from c13d6bd to e67f1ef Compare August 13, 2026 08:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.

Suppressed comments (1)

themes/src/main/resources/theme/base/account/messages/messages_en.properties:212

  • Issue #51676 requires the account context to say “An account with this email address is already registered.” while reserving this wording for login. Using the login text here leaves both contexts identical, so the requested distinction is not implemented.
emailExistsMessage=This email is already associated with an existing account.

@robson90

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback, as far as I can tell all messages have been migrated.

The failing FIPS IT comes from a 403:

[ERROR] Plugin org.wildfly.maven.plugins:licenses-plugin:2.3.1.Final or one of its dependencies could not be resolved:
[ERROR] 	The following artifacts could not be resolved: org.wildfly.maven.plugins:licenses-plugin:pom:2.3.1.Final (absent): Could not transfer artifact org.wildfly.maven.plugins:licenses-plugin:pom:2.3.1.Final from/to central (https://repo.maven.apache.org/maven2): status code: 403, reason phrase: Forbidden (403)

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.

Distinguish between Login Theme and Account Console for an already existing Mail in Keycloak

3 participants