From 5aead54a0c214db66d7ca313a85d6ff1fbe09ae4 Mon Sep 17 00:00:00 2001 From: Andy Kittner Date: Sat, 19 May 2012 10:48:29 +0200 Subject: [PATCH] Improve error message for failed logins (#199) While #199 was already closed I think passing on the original error message is more userfriendly as it gives more details what the actual error was (generates specific messages for user inactive and disabled cookies) --- openslides/participant/templates/participant/login.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openslides/participant/templates/participant/login.html b/openslides/participant/templates/participant/login.html index 1b9b894ca..db7e61ff1 100644 --- a/openslides/participant/templates/participant/login.html +++ b/openslides/participant/templates/participant/login.html @@ -20,7 +20,12 @@ close - {%trans "Your username and password were not accepted. Please try again." %} + {% for msg in form.non_field_errors %} + {{ msg }} + {% if not forloop.last %}
{% endif %} + {% empty %} + {%trans "Your username and password were not accepted. Please try again." %} + {% endfor %}