diff --git a/docs/documentation/upgrading/topics/changes/changes-26_4_0.adoc b/docs/documentation/upgrading/topics/changes/changes-26_4_0.adoc index b8121504421..c1915bddf01 100644 --- a/docs/documentation/upgrading/topics/changes/changes-26_4_0.adoc +++ b/docs/documentation/upgrading/topics/changes/changes-26_4_0.adoc @@ -99,6 +99,12 @@ When tracing is enabled, now also calls to other nodes of a {project_name} clust To disable this kind of tracing, set the option `tracing-infinispan-enabled` to `false`. +=== Login theme optimized for OTP and recovery code entry + +The input fields in the login theme for OTP and recovery codes and have been optimized: + +* The input mode is now `numeric`, which will ease the input on mobile devices. +* The auto-complete is set to `one-time-code` to avoid interference with password managers. // ------------------------ Deprecated features ------------------------ // == Deprecated features diff --git a/themes/src/main/resources/theme/base/login/login-config-totp.ftl b/themes/src/main/resources/theme/base/login/login-config-totp.ftl index d531eba0ff3..670956af227 100755 --- a/themes/src/main/resources/theme/base/login/login-config-totp.ftl +++ b/themes/src/main/resources/theme/base/login/login-config-totp.ftl @@ -56,8 +56,9 @@ *
- diff --git a/themes/src/main/resources/theme/base/login/login-recovery-authn-code-input.ftl b/themes/src/main/resources/theme/base/login/login-recovery-authn-code-input.ftl index 774efc2f697..995b7c2e8f6 100644 --- a/themes/src/main/resources/theme/base/login/login-recovery-authn-code-input.ftl +++ b/themes/src/main/resources/theme/base/login/login-recovery-authn-code-input.ftl @@ -14,9 +14,10 @@ diff --git a/themes/src/main/resources/theme/keycloak.v2/login/field.ftl b/themes/src/main/resources/theme/keycloak.v2/login/field.ftl index 882a0e6a462..18cfec2524a 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/field.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/field.ftl @@ -45,6 +45,7 @@ <@group name=name label=label error=error required=required> autofocus + <#if autocomplete == "one-time-code">inputmode="numeric" aria-invalid="<#if error?has_content>true"/> <@errorIcon error=error/> diff --git a/themes/src/main/resources/theme/keycloak.v2/login/login-config-totp.ftl b/themes/src/main/resources/theme/keycloak.v2/login/login-config-totp.ftl index e83df90439a..fe8d7c360b5 100755 --- a/themes/src/main/resources/theme/keycloak.v2/login/login-config-totp.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/login-config-totp.ftl @@ -60,8 +60,9 @@
- <@field.errorIcon error=kcSanitize(messagesPerField.get('totp'))?no_esc/>