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)
This commit is contained in:
Andy Kittner 2012-05-19 10:48:29 +02:00
parent d3cf5c9311
commit 5aead54a0c

View File

@ -20,7 +20,12 @@
<a class="close" href="#">
<img alt="close" title="{% trans 'Close this notification' %}" src="{% static 'images/icons/cross.png' %}">
</a>
<em>{%trans "Your username and password were not accepted. Please try again." %}</em>
{% for msg in form.non_field_errors %}
<em>{{ msg }}</em>
{% if not forloop.last %}<br />{% endif %}
{% empty %}
<em>{%trans "Your username and password were not accepted. Please try again." %}</em>
{% endfor %}
</div>
<script>
$("div.notification").click(function () {