From 3c237760b6addc2f869863fad1e3b9dd23262cb6 Mon Sep 17 00:00:00 2001 From: Stan Silvert Date: Tue, 25 Oct 2016 08:38:29 -0400 Subject: [PATCH] KEYCLOAK-3816: Broken OTP setup with smaller resolutions --- .../resources/theme/base/account/totp.ftl | 96 +++++++++---------- .../theme/base/login/login-config-totp.ftl | 55 ++++------- .../account/resources/css/account.css | 12 --- 3 files changed, 69 insertions(+), 94 deletions(-) diff --git a/themes/src/main/resources/theme/base/account/totp.ftl b/themes/src/main/resources/theme/base/account/totp.ftl index 8ab36fa8b7..4b96dd8b34 100755 --- a/themes/src/main/resources/theme/base/account/totp.ftl +++ b/themes/src/main/resources/theme/base/account/totp.ftl @@ -2,66 +2,66 @@ <@layout.mainLayout active='totp' bodyClass='totp'; section> <#if totp.enabled> -

${msg("authenticatorTitle")}

+

${msg("authenticatorTitle")}

- - - - - - - - - +
${msg("configureAuthenticators")}
${msg("mobile")} - + + + + + + + + + - -
${msg("configureAuthenticators")}
${msg("mobile")} +
+
<#else> -

${msg("authenticatorTitle")}

+

${msg("authenticatorTitle")}

-
+
-
    -
  1. -

    ${msg("totpStep1")}

    -
  2. -
  3. -

    ${msg("totpStep2")}

    - Figure: Barcode
    - ${totp.totpSecretEncoded} -
  4. -
  5. -

    ${msg("totpStep3")}

    -
  6. -
+
    +
  1. +

    ${msg("totpStep1")}

    +
  2. +
  3. +

    ${msg("totpStep2")}

    +

    Figure: Barcode

    +

    ${totp.totpSecretEncoded}

    +
  4. +
  5. +

    ${msg("totpStep3")}

    +
  6. +
-
+
-
- -
-
- -
- -
- - -
+ + +
+
+
-
-
-
- - -
+
+ + +
+
+ +
+
+
+ +
- +
+ 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 07a88019f0..914ecb53c1 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 @@ -5,41 +5,28 @@ <#elseif section = "header"> ${msg("loginTotpTitle")} <#elseif section = "form"> -
-
-
- -
-
- -
- +
    +
  1. +

    ${msg("loginTotpStep1")}

    +
  2. +
  3. +

    ${msg("loginTotpStep2")}

    + Figure: Barcode
    + ${totp.totpSecretEncoded} +
  4. +
  5. +

    ${msg("loginTotpStep3")}

    +
  6. +
+ +
+
+
+ +
-
-
-
-
-
- -
- -
-
- - <#elseif section = "info" > -
    -
  1. -

    ${msg("loginTotpStep1")}

    -
  2. -
  3. -

    ${msg("loginTotpStep2")}

    - Figure: Barcode
    - ${totp.totpSecretEncoded} -
  4. -
  5. -

    ${msg("loginTotpStep3")}

    -
  6. -
+ + diff --git a/themes/src/main/resources/theme/keycloak/account/resources/css/account.css b/themes/src/main/resources/theme/keycloak/account/resources/css/account.css index be0c31e608..22edb493b8 100644 --- a/themes/src/main/resources/theme/keycloak/account/resources/css/account.css +++ b/themes/src/main/resources/theme/keycloak/account/resources/css/account.css @@ -208,18 +208,6 @@ ol li img { border: 1px solid #eee; } -ol li span { - padding: 15px; - background-color: #f5f5f5; - border: 1px solid #eee; - top: 46px; - left: 270px; - right: 50px; - position: absolute; - font-family: courier, ​monospace; - font-size: 25px; -} - hr + .form-horizontal { border: none; padding-top: 0;