[extensions-web] Fix auth form errors.



commit dcd3be67e6748ad05e9622df19602c4f5729b778
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Oct 19 18:19:15 2011 -0400

    Fix auth form errors.

 sweettooth/auth/templates/auth/login.html |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/auth/templates/auth/login.html b/sweettooth/auth/templates/auth/login.html
index 92edb50..c3b6660 100644
--- a/sweettooth/auth/templates/auth/login.html
+++ b/sweettooth/auth/templates/auth/login.html
@@ -4,15 +4,20 @@
   <input type="hidden" name="next" value="{{ next }}">
   {% csrf_token %}
 
-  {{ form.errors }}
-
   <ol>
     <li>
+      {% for error in form.username.errors %}
+        <p class="error">{{ error }}</p>
+      {% endfor %}
       {{ form.username.label_tag }}
       {{ form.username }}
     </li>
 
     <li>
+      {% for error in form.password.errors %}
+        <p class="error">{{ error }}</p>
+      {% endfor %}
+      {{ form.password.errors }}
       {{ form.password.label_tag }}
       {{ form.password }}
     </li>



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