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