diff --git a/themes/src/main/resources/theme/base/login/login-recovery-authn-code-config.ftl b/themes/src/main/resources/theme/base/login/login-recovery-authn-code-config.ftl index c6be951abf..c664fc7076 100644 --- a/themes/src/main/resources/theme/base/login/login-recovery-authn-code-config.ftl +++ b/themes/src/main/resources/theme/base/login/login-recovery-authn-code-config.ftl @@ -5,188 +5,182 @@ <#if section = "header"> ${msg("recovery-code-config-header")} <#elseif section = "form"> - -
-
- -
-

- Warning alert: - ${msg("recovery-code-config-warning-title")} -

-
-

${msg("recovery-code-config-warning-message")}

-
-
+ +
+
+ +
+

+ Warning alert: + ${msg("recovery-code-config-warning-title")} +

+
+

${msg("recovery-code-config-warning-message")}

+
+
-
-
-
-
    - <#list recoveryAuthnCodesConfigBean.generatedRecoveryAuthnCodesList as code> -
  1. ${code[0..3]}-${code[4..7]}-${code[8..]}
  2. +
      + <#list recoveryAuthnCodesConfigBean.generatedRecoveryAuthnCodesList as code> +
    1. ${code?counter}: ${code[0..3]}-${code[4..7]}-${code[8..]}
    -
-
-
- -
- - - -
+ +
+ + + +
- -
- - -
+ +
+ + +
-
- - - -<@passwordCommons.logoutOtherSessions/> + + + + + <@passwordCommons.logoutOtherSessions/> -<#if isAppInitiatedAction??> - - <#else> - -
- - + id="saveRecoveryAuthnCodesBtn" value="${msg("recovery-codes-action-complete")}" + disabled + /> - + + + + + diff --git a/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl b/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl index ea1e459dc2..e895cf137f 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl @@ -3,190 +3,177 @@ <@layout.registrationLayout; section> <#if section = "header"> - ${msg("recovery-code-config-header")} + ${msg("recovery-code-config-header")} <#elseif section = "form"> - -
-
- -
-

- Warning alert: - ${msg("recovery-code-config-warning-title")} -

-
-

${msg("recovery-code-config-warning-message")}

-
-
- -
-
-
-
    - <#list recoveryAuthnCodesConfigBean.generatedRecoveryAuthnCodesList as code> -
  1. ${code[0..3]}-${code[4..7]}-${code[8..]}
  2. - -
-
-
+ +
+
+
+

+ Warning alert: + ${msg("recovery-code-config-warning-title")} +

+
+

${msg("recovery-code-config-warning-message")}

+
+
- -
- - - -
+
+
+
+
    + <#list recoveryAuthnCodesConfigBean.generatedRecoveryAuthnCodesList as code> +
  1. ${code[0..3]}-${code[4..7]}-${code[8..]}
  2. + +
+
+
+
- -
- - -
+ +
+ + + +
-
- - - -<@passwordCommons.logoutOtherSessions/> - -<#if isAppInitiatedAction??> - - -<#else> - +
+ + +
+ + + + + + <@passwordCommons.logoutOtherSessions/> + + <#if isAppInitiatedAction??> + + + <#else> + -
+ - - - + function printRecoveryCodes() { + const w = window.open(); + w.document.write(buildPrintContent()); + w.print(); + w.close(); + } + + + diff --git a/themes/src/main/resources/theme/keycloak.v2/login/resources/css/styles.css b/themes/src/main/resources/theme/keycloak.v2/login/resources/css/styles.css index 2481ddbf26..3d58c96acb 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/resources/css/styles.css +++ b/themes/src/main/resources/theme/keycloak.v2/login/resources/css/styles.css @@ -69,7 +69,7 @@ div.kc-logo-text span { border-color: transparent black transparent transparent; } -.kc-recovery-codes-list { +#kc-recovery-codes-list { columns: 2; }