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():