From 2366da14856a60110385fe48882ba6c3fb8bf6ae Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 21 Jun 2022 18:43:48 +0800 Subject: [PATCH] perf: redis AND login page --- .../templates/authentication/login.html | 70 ++++++++++++------- apps/authentication/views/login.py | 8 +-- apps/jumpserver/settings/libs.py | 2 +- 3 files changed, 50 insertions(+), 30 deletions(-) diff --git a/apps/authentication/templates/authentication/login.html b/apps/authentication/templates/authentication/login.html index 98e11732d..dd4aabe96 100644 --- a/apps/authentication/templates/authentication/login.html +++ b/apps/authentication/templates/authentication/login.html @@ -32,14 +32,33 @@ font-weight: normal; } - .hr-line-dashed { - border-top: 1px dashed #e7eaec; - color: #ffffff; - background-color: #ffffff; - height: 1px; - margin: 20px 0; - width: 30%; - display: inline-block; + .form-group { + margin-bottom: 30px; + margin-top: 10px; + } + + .auth-methods .form-group, .addition .form-group, .has-error .form-group { + margin-bottom: 20px; + margin-top: 10px; + } + + .form-group.auto-login { + margin-bottom: 10px; + } + + .auth-methods.addition .form-group { + margin-bottom: 15px; + margin-top: 5px; + } + + .auth-methods.has-error .form-group, .addition.has-error .form-group { + margin-bottom: 20px; + margin-top: 5px; + } + + .auth-methods.has-error.addition .form-group { + margin-bottom: 10px; + margin-top: 5px; } .login-content { @@ -84,22 +103,10 @@ margin-top: -8px !important; } - .no-captcha-challenge .form-group { - margin-bottom: 20px; - } - .jms-title { padding: 60px 10px 10px; } - .no-captcha-challenge .jms-title { - padding: 60px 10px 10px; - } - - .no-captcha-challenge .welcome-message { - padding-top: 10px; - } - .more-login-items { margin-top: 10px; } @@ -149,6 +156,7 @@ } .more-methods-title { position: relative; + margin-top: 20px; } .more-methods-title:before, .more-methods-title:after { position: absolute; @@ -173,11 +181,23 @@ .auto-login.form-group .checkbox { margin: 5px 0; } + + .more-login { + margin-top: 20px; + } + + .has-error .more-login { + margin-top: 0; + } -
+