Browse Source

perf: 优化登陆

pull/8457/head
ibuler 2 years ago
parent
commit
8f59bb2a48
  1. 18
      apps/authentication/templates/authentication/login.html
  2. 2
      apps/authentication/views/login.py

18
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%;
}

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

Loading…
Cancel
Save