Display specific error messages on the login screen.

This allows us to inform users that the reason they are unable to log in
is because their account has been deactivated. This message (generated by
Django) is only shown when the correct credentials are used and is_active
is False.

(imported from commit 754a4c9af6ec05e8f18cf183bc08b67bacdeb3e0)
This commit is contained in:
Luke Faraone 2013-07-05 18:23:38 -07:00
parent b715cd2034
commit c646d95b7a
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,9 @@ autofocus('#id_username');
{% if form.errors %} {% if form.errors %}
<div class="alert alert-error"> <div class="alert alert-error">
Your email and password didn't match. Please try again. {% for error in form.errors.values %}
<div>{{ error | striptags }}</div>
{% endfor %}
</div> </div>
{% endif %} {% endif %}