From ef7b2b79808cacb8e762ba8338b42bed589d5da8 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 16 Sep 2021 14:04:57 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/authentication/login.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/apps/authentication/templates/authentication/login.html b/apps/authentication/templates/authentication/login.html index c54f792c7..3dafafe51 100644 --- a/apps/authentication/templates/authentication/login.html +++ b/apps/authentication/templates/authentication/login.html @@ -147,7 +147,7 @@ {% csrf_token %}
{% if form.errors %} -

+

{% if form.non_field_errors %} {{ form.non_field_errors.as_text }} {% endif %} @@ -160,9 +160,15 @@

{% bootstrap_field form.username show_label=False %} -
- + +
+ + {% if form.password.errors %} +

+ {{ form.password.errors.as_text }} +

+ {% endif %}
{% if form.challenge %} {% bootstrap_field form.challenge show_label=False %} @@ -220,7 +226,6 @@ {% trans 'FeiShu' %} {% endif %} -
{% else %}
@@ -236,6 +241,9 @@