Show error message if login fails. Thanks to nakagumahissao for the patch which closes Google Code #151 and Github #10.

This commit is contained in:
Ross Poulton 2011-01-29 06:27:49 +00:00
parent 2d7d3c489d
commit 341871d963

View File

@ -7,7 +7,7 @@
<p>{% trans "To log in and begin responding to cases, simply enter your username and password below." %}</p>
<form method='post' action='./'>
{% if form.has_errors %}<p>{% trans "Your username and password didn't match. Please try again." %}</p>{% endif %}
{% if form.errors %}<p>{% trans "Your username and password didn't match. Please try again." %}</p>{% endif %}
<dl>
<dt><label>{% trans "Username" %}</label></dt>
<dd>{{ form.username }}</dd>