Repository navigation
Fix device user code input styling in keycloak.v2 login theme - #47283
Conversation
51e88ed to
9b29c91
Compare
| <#assign error = messagesPerField.get("device_user_code")> | ||
| <@field.group name="device-user-code" label=msg("verifyOAuth2DeviceUserCode") error=error> | ||
| <span class="${properties.kcInputClass} <#if error?has_content>${properties.kcError}</#if>"> | ||
| <input id="device-user-code" name="device_user_code" autocomplete="off" type="text" autofocus dir="ltr" | ||
| aria-invalid="<#if error?has_content>true</#if>"/> | ||
| <@field.errorIcon error=error /> | ||
| </span> | ||
| </@field.group> |
There was a problem hiding this comment.
Can't it be done by this
| <#assign error = messagesPerField.get("device_user_code")> | |
| <@field.group name="device-user-code" label=msg("verifyOAuth2DeviceUserCode") error=error> | |
| <span class="${properties.kcInputClass} <#if error?has_content>${properties.kcError}</#if>"> | |
| <input id="device-user-code" name="device_user_code" autocomplete="off" type="text" autofocus dir="ltr" | |
| aria-invalid="<#if error?has_content>true</#if>"/> | |
| <@field.errorIcon error=error /> | |
| </span> | |
| </@field.group> | |
| <@field.input name="device_user_code" label=msg("verifyOAuth2DeviceUserCode") autofocus=true /> | |
| <@buttons.actionGroup> | ||
| <@buttons.button id="kc-login" label="doSubmit" class=["kcButtonPrimaryClass", "kcButtonBlockClass"] /> | ||
| </@buttons.actionGroup> |
There was a problem hiding this comment.
| <@buttons.actionGroup> | |
| <@buttons.button id="kc-login" label="doSubmit" class=["kcButtonPrimaryClass", "kcButtonBlockClass"] /> | |
| </@buttons.actionGroup> | |
| <@buttons.loginButton /> |
892d41b to
3435884
Compare
Signed-off-by: kathari00 <katharina.eiserfey1@gmail.com>
3435884 to
d5fe2db
Compare
|
Thank you for this contribution! Once it is merged, it would be great if you could provide a backport to the 26.6 release branch, and then we would include it in the next 26.6 patch release. |
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
@kathari00 - With this change of the ID of the fields, I'm no longer 100% sure if this should be backported to 26.6 or not. If you would like to see the change in 26.6 instead of waiting for another 3 months, please let me know and prepare the backport. If not, then we just wait for the next release. |
|
Thanks for taking a look! The change is not urgent. |
Fixes keycloak#46463 Signed-off-by: kathari00 <katharina.eiserfey1@gmail.com>
Fixes #46463
When entering a code for the OAuth 2.0 Device Authorization Grant on the device verification page, the input field was not rendered with the expected PatternFly styling in the keycloak.v2 login theme.
This change adds the missing keycloak.v2 template for the device user code page so the code input is rendered like the other PatternFly-styled login form fields.