Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@tagliala
Copy link
Contributor

@tagliala tagliala commented Feb 8, 2026

When executing the VERIFY_EMAIL action (for example via the admin API), the confirmation page showed "Your account has been updated." twice, once as the page header and once as the body.

The root cause is that AuthenticationManager.finishedRequiredActions() rendered the ACCOUNT_UPDATED info page without setting a messageHeader attribute.

The info.ftl template falls back to message.summary when messageHeader is not set, which produced the duplicated message.

Change summary:

  • Add a new message key accountUpdatedTitle with value "Account Updated".
  • Add a Messages constant (ACCOUNT_UPDATED_TITLE) for the new key.
  • Update AuthenticationManager to set the messageHeader attribute to the message key (ACCOUNT_UPDATED_TITLE) instead of passing a resolved message string. Passing the key lets the template render a distinct header (localized via the message key) and keeps the body message separate.

Result:

  • Header now reads "Account Updated"
  • Body now reads "Your account has been updated."
  • Prevents the same message appearing both in the header and the body.

Notes:

Fix #46105

Before

image

After

image

@tagliala tagliala requested review from a team as code owners February 8, 2026 18:06
@tagliala tagliala force-pushed the copilot/fix-duplicate-message-display branch from ddfc5d7 to f8398fa Compare February 8, 2026 18:08
emailSendErrorMessage=Failed to send email, please try again later.

accountUpdatedTitle=Account Updated
accountUpdatedMessage=Your account has been updated.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably this is required somewhere else, but I'm not familiar with the process

@tagliala tagliala force-pushed the copilot/fix-duplicate-message-display branch from f8398fa to e102c16 Compare February 9, 2026 09:06
@tagliala tagliala requested review from a team as code owners February 9, 2026 09:52
@tagliala tagliala force-pushed the copilot/fix-duplicate-message-display branch 4 times, most recently from 095af22 to 1a36c8c Compare February 13, 2026 10:33
When executing the VERIFY_EMAIL action (for example via the admin API),
the confirmation page showed "Your account has been updated." twice,
once as the page header and once as the body.

The root cause is that `AuthenticationManager.finishedRequiredActions()`
rendered the `ACCOUNT_UPDATED` info page without setting a messageHeader
attribute.

The `info.ftl` template falls back to `message.summary` when
`messageHeader` is not set, which produced the duplicated message.

Change summary:
- Add a new message key `accountUpdatedTitle` with value "Account
  Updated".
- Add a Messages constant (`ACCOUNT_UPDATED_TITLE`) for the new key.
- Update `AuthenticationManager` to set the `messageHeader` attribute
  to the message key (`ACCOUNT_UPDATED_TITLE`) instead of passing a
  resolved message string. Passing the key lets the template render a
  distinct header (localized via the message key) and keeps the body
  message separate.

Result:
- Header now reads "Account Updated"
- Body now reads "Your account has been updated."
- Prevents the same message appearing both in the header and the body.

Notes:
- This addresses the same underlying issue reported in keycloak#41701

Fix keycloak#46105

Signed-off-by: Geremia Taglialatela <[email protected]>

Update tests to expect new "Account Updated" page title

Updated UserEmailTest assertions to expect "Account Updated" instead of
"Your account has been updated." for the kc-page-title element (header).

The body message still shows "Your account has been updated." - only the
header was changed to be shorter and more concise.

Fixed tests:
- sendResetPasswordEmailWithRedirect (line 617)
- sendResetPasswordEmailWithRedirectAndCustomLifespan (line 699)

Co-authored-by: tagliala <[email protected]>

Lowercase message
@ahus1 ahus1 force-pushed the copilot/fix-duplicate-message-display branch from 1a36c8c to 5139c94 Compare February 13, 2026 11:36
@ahus1 ahus1 self-assigned this Feb 13, 2026
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.

accountUpdatedMessage shows up twice after "verify email" action

2 participants