Skip to content

🐞 Keycloak OTP - Adress missing from OTP screen#2651

Open
xalsina-sequent wants to merge 6 commits into
mainfrom
fix/meta-12082/main
Open

🐞 Keycloak OTP - Adress missing from OTP screen#2651
xalsina-sequent wants to merge 6 commits into
mainfrom
fix/meta-12082/main

Conversation

@xalsina-sequent
Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings May 8, 2026 16:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Keycloak OTP (Message OTP) UI strings/templates so the OTP screen can display the destination address (phone/email), and fixes a typo in the “forgot password phone number hint” message key.

Changes:

  • Update OTP title i18n strings to include the destination address via {0} placeholders across multiple locales.
  • Adjust OTP login template to pass address into the title message formatting.
  • Fix forgotPasswrodPhoneNumberHint typo to forgotPasswordPhoneNumberHint in the reset password template and message bundles.

Reviewed changes

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

Show a summary per file
File Description
packages/keycloak-extensions/sequent-theme/src/main/resources/theme/sequent.admin-portal/login/login-reset-password.ftl Fixes the i18n key typo for the phone number hint on reset password screen.
packages/keycloak-extensions/message-otp-authenticator/src/main/resources/theme-resources/templates/verify-email.ftl Updates title rendering (currently drops parameters) for the verify-email OTP screen.
packages/keycloak-extensions/message-otp-authenticator/src/main/resources/theme-resources/templates/reset-message-otp.ftl Updates header title rendering (currently drops parameters) for reset message OTP flow.
packages/keycloak-extensions/message-otp-authenticator/src/main/resources/theme-resources/templates/message-otp.login.ftl Passes address into OTP/OTL title messages so the destination is shown.
packages/keycloak-extensions/message-otp-authenticator/src/main/resources/theme-resources/messages/messages_tl.properties Updates OTP/OTL title strings to include {0} and renames the forgot-password hint key.
packages/keycloak-extensions/message-otp-authenticator/src/main/resources/theme-resources/messages/messages_gl.properties Updates OTP/OTL title strings to include {0} and renames the forgot-password hint key.
packages/keycloak-extensions/message-otp-authenticator/src/main/resources/theme-resources/messages/messages_eu.properties Updates OTP/OTL title strings to include {0} and renames the forgot-password hint key.
packages/keycloak-extensions/message-otp-authenticator/src/main/resources/theme-resources/messages/messages_es.properties Updates OTP/OTL title strings to include {0} and renames the forgot-password hint key.
packages/keycloak-extensions/message-otp-authenticator/src/main/resources/theme-resources/messages/messages_en.properties Updates OTP/OTL title strings to include {0} and renames the forgot-password hint key.
packages/keycloak-extensions/message-otp-authenticator/src/main/resources/theme-resources/messages/messages_ca.properties Updates OTP/OTL title strings to include {0}, renames the forgot-password hint key, and tweaks SMS instruction text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 1 comment.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 18 out of 18 changed files in this pull request and generated 3 comments.

Comment on lines +9 to +12
<#if section = "header">
${msg("messageOtp.auth.title", realm.displayName)}
${msg("messageOtp.auth.title")}
<#elseif section = "show-username">
<h1>${msg("messageOtp.auth.title", realm.displayName)}</h1>
<h1>${msg("messageOtp.auth.title")}</h1>
Comment on lines 9 to 12
<#if section = "header">
${msg("messageOtp.auth.title", realm.displayName)}
${msg("messageOtp.auth.title")}
<#elseif section = "show-username">
<h1>${msg("messageOtp.auth.codeTitle", realm.displayName)}</h1>
${msg("messageOtp.auth.title", realm.displayName)}
${msg("messageOtp.auth.title")}
<#elseif section = "show-username">
<h1>${msg("messageOtp.auth.codeTitle", realm.displayName)}</h1>
@xalsina-sequent
Copy link
Copy Markdown
Contributor Author

@copilot apply changes based on the comments in this thread

…TP screens

Agent-Logs-Url: https://github.com/sequentech/step/sessions/fa97714e-828d-4048-b304-985d27eb52ec

Co-authored-by: xalsina-sequent <173030604+xalsina-sequent@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented May 11, 2026

@copilot apply changes based on the comments in this thread

Applied all three changes from the review thread in commit e4dbec3:

  1. verify-email.ftl: Updated both header and show-username sections to render msg("messageOtp.auth.address", address) so users see the obscured destination address.

  2. reset-message-otp.ftl (header): Updated to render messageOtp.otl.address or messageOtp.auth.address (with address) depending on isOtl, matching the pattern in message-otp.login.ftl.

  3. reset-message-otp.ftl (show-username): Changed msg("messageOtp.auth.codeTitle", realm.displayName)msg("messageOtp.auth.codeTitle") since the message string no longer uses a {0} parameter.

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.

3 participants