[extensions-web/ui-cleanup: 6/12] login: Show non-field errors, like form validation errors



commit 6162b536ec040b0e81a9f70604c3957e585734b3
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Jan 7 15:44:50 2012 -0500

    login: Show non-field errors, like form validation errors

 sweettooth/auth/templates/registration/login.html |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/auth/templates/registration/login.html b/sweettooth/auth/templates/registration/login.html
index a61f1ee..b7dde37 100644
--- a/sweettooth/auth/templates/registration/login.html
+++ b/sweettooth/auth/templates/registration/login.html
@@ -4,6 +4,10 @@
   <input type="hidden" name="next" value="{{ next }}">
   {% csrf_token %}
 
+  {% for error in form.non_field_errors %}
+    <p class="error">{{ error }}</p>
+  {% endfor %}
+
   <ol>
     <li>
       {% for error in form.username.errors %}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]