From 341871d963cf30e0d4e9ccc0be3ca186421a9a04 Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Sat, 29 Jan 2011 06:27:49 +0000 Subject: [PATCH] Show error message if login fails. Thanks to nakagumahissao for the patch which closes Google Code #151 and Github #10. --- helpdesk/templates/registration/login.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/templates/registration/login.html b/helpdesk/templates/registration/login.html index 467181e9..0dba9ad4 100644 --- a/helpdesk/templates/registration/login.html +++ b/helpdesk/templates/registration/login.html @@ -7,7 +7,7 @@

{% trans "To log in and begin responding to cases, simply enter your username and password below." %}

- {% if form.has_errors %}

{% trans "Your username and password didn't match. Please try again." %}

{% endif %} + {% if form.errors %}

{% trans "Your username and password didn't match. Please try again." %}

{% endif %}
{{ form.username }}