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:
parent
d3cf5c9311
commit
5aead54a0c
@ -20,7 +20,12 @@
|
||||
<a class="close" href="#">
|
||||
<img alt="close" title="{% trans 'Close this notification' %}" src="{% static 'images/icons/cross.png' %}">
|
||||
</a>
|
||||
{% 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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user