[extensions-web/ui-cleanup: 6/12] login: Show non-field errors, like form validation errors
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/ui-cleanup: 6/12] login: Show non-field errors, like form validation errors
- Date: Mon, 9 Jan 2012 21:29:44 +0000 (UTC)
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]