From 2f11a70341263c5935d758f73bc6c3a6c953fe8c Mon Sep 17 00:00:00 2001 From: OrangeM21 Date: Fri, 24 Jul 2020 18:23:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(authentication):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/authentication/xpack_login.html | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/apps/authentication/templates/authentication/xpack_login.html b/apps/authentication/templates/authentication/xpack_login.html index 77edc3582..32f12e9b5 100644 --- a/apps/authentication/templates/authentication/xpack_login.html +++ b/apps/authentication/templates/authentication/xpack_login.html @@ -67,9 +67,13 @@
-
- {{ JMS_TITLE }} -
+ {% if form.challenge %} +
+ {% else %} +
+ {% endif %} + {{ JMS_TITLE }} +
{% trans 'Welcome back, please enter username and password to login' %}
@@ -80,9 +84,13 @@
{% csrf_token %} {% if form.non_field_errors %} -
-

{{ form.non_field_errors.as_text }}

-
+ {% if form.challenge %} +
+ {% else %} +
+ {% endif %} +

{{ form.non_field_errors.as_text }}

+
{% elif form.errors.captcha %}

{% trans 'Captcha invalid' %}

{% else %}