Rewrite the verify-email message - #11
Merged
Merged
Conversation
The webprotege email theme only overrode theme.properties (styles/parent), so the realm's emailTheme was still set to the stock "keycloak" theme and every email used Keycloak's default wording regardless of what lived under webprotege/email. Add a messages override with plain-language verify-email copy explaining why the user got the email, what to do, and that it expires soon. Point the realm at the webprotege email theme so it's actually used.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Updates the wording of the "verify your email" message people get when they register or need to confirm their email address, so it's clearer about why they're getting it and what to do.
The catch
The custom
webprotegeemail theme already existed in this repo, but the realm was actually configured to use Keycloak's stockkeycloakemail theme instead (emailThemeinwebprotege.json). So any wording changes made here previously would have had zero effect — nothing was ever reading the custom email theme. This fixes that too, so the new wording (and any future changes here) actually take effect.Testing
Built the image locally, pointed a running realm at the theme, and sent a real verification email to a throwaway test account through Keycloak's admin API. Confirmed both the plain-text and HTML versions render the new copy correctly, with the link, app name, and expiry time all filling in as expected, then deleted the test account.