From 8f59bb2a48bb7f73033db4093643009cf61ca1c4 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 21 Jun 2022 19:06:06 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=99=BB=E9=99=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/authentication/login.html | 18 +++++------------- apps/authentication/views/login.py | 2 +- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/apps/authentication/templates/authentication/login.html b/apps/authentication/templates/authentication/login.html index dd4aabe96..3c95332a2 100644 --- a/apps/authentication/templates/authentication/login.html +++ b/apps/authentication/templates/authentication/login.html @@ -33,30 +33,26 @@ } .form-group { - margin-bottom: 30px; + margin-bottom: 40px; margin-top: 10px; } - .auth-methods .form-group, .addition .form-group, .has-error .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 { + .auth-methods.has-error .form-group, .auth-methods.addition .form-group { margin-bottom: 15px; margin-top: 5px; } - .auth-methods.has-error .form-group, .addition.has-error .form-group { + .has-error.addition .form-group { margin-bottom: 20px; margin-top: 5px; } - .auth-methods.has-error.addition .form-group { + .auth-methods.addition.has-error .form-group { margin-bottom: 10px; margin-top: 5px; } @@ -120,10 +116,6 @@ border-right: none; } - .more-login-item:hover { - color: #334554; - } - .select-con { width: 35%; } diff --git a/apps/authentication/views/login.py b/apps/authentication/views/login.py index 3b8f2c60c..288f88551 100644 --- a/apps/authentication/views/login.py +++ b/apps/authentication/views/login.py @@ -178,7 +178,7 @@ class UserLoginView(mixins.AuthMixin, FormView): 'logo': static('img/login_feishu_logo.png') } ] - return [method for method in auth_methods if method['enabled']] + return [method for method in auth_methods] @staticmethod def get_support_langs():