Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
user-profile
Describe the bug
Since Keycloak 26.2.0 a new input field named locale
appeared on the registration page when using a custom user-profile-commons theme with the User Profile feature.
This seems to be a regression introduced in #38549.
The template was changed to add type=hidden
to the locale field, but older themes just display this field as a regular input.
References
- Add locale attribute to the registration context #38549
- Register page - locale field is not hidden keycloakify/keycloakify#837
Version
= 26.2.0
Regression
- The issue is a regression
Expected behavior
An existing theme for user-profile-commons continue to work as before without showing the additional locale
input field.
Actual behavior
Existing themes for user-profile-commons show an additional locale
input field.
How to Reproduce?
- Run Keycloak >= 26.2.0
- Configure a custom user-profile-commons.ftl theme with the previous template from https://github.com/keycloak/keycloak/blob/9d472355036b26cf29eb2b1a93f2dd70e8b70b32/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl
- Enable User Profile
- Open the user registration page
Anything else?
It should be discussed if either:
- This regression should be noted in the migration guide for Keycloak 26.2.0
- The user-profile-commons template should be changed to be backwards compatible