Commit 5a2f157f by XuYS

更新登录页跳转

parent f5030721
......@@ -39,6 +39,9 @@ def login_page(request):
"""
Display the login form.
"""
if request.user.is_authenticated():
return redirect('/home/')
else:
csrf_token = csrf(request)['csrf_token']
if (settings.FEATURES['AUTH_USE_CERTIFICATES'] and
ssl_get_cert_from_request(request)):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment