From 27e15c63461c01d8488fac301cf2deaf25c6fee2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 7 Jun 2022 22:20:22 -0400 Subject: [PATCH] validate jquery load and domain input --- users/templates/users/login.html | 51 ++++++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/users/templates/users/login.html b/users/templates/users/login.html index 3b609043..3338ded8 100644 --- a/users/templates/users/login.html +++ b/users/templates/users/login.html @@ -1,4 +1,3 @@ - {% load i18n %} {% load static %} @@ -16,8 +15,38 @@ + {{ site_name }} - {% trans '登录' %} +
- - - +
- - {% if user.is_authenticated %} {% trans '前往首页' %} {% elif allow_any_site %} -
- + +
{% trans '了解更多' %}
+ {% else %} {% endif %} - +
网页加载超时,请检查网络(翻墙)设置。
-
{% if not user.is_authenticated and not allow_any_site %} - -