From c646d95b7a1084be53721e3bf5e18776cd9ee4b9 Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Fri, 5 Jul 2013 18:23:38 -0700 Subject: [PATCH] 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) --- templates/zephyr/login.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/zephyr/login.html b/templates/zephyr/login.html index 4e8823d86a..d7d41d514f 100644 --- a/templates/zephyr/login.html +++ b/templates/zephyr/login.html @@ -16,7 +16,9 @@ autofocus('#id_username'); {% if form.errors %}
- Your email and password didn't match. Please try again. + {% for error in form.errors.values %} +
{{ error | striptags }}
+ {% endfor %}
{% endif %}