Commit 3cf5a06ea4ed115f34c89f94db6a5a101cd81250
Committed by
Sergio Oliveira
1 parent
ca5708cf
Exists in
master
and in
39 other branches
Handling non fields form errors in login template
Signed-off-by: Alexandre Barbosa <alexandreab@live.com> Signed-off-by: Lucas Kanashiro <kanashiroduarte@gmail.com>
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
src/accounts/templates/registration/login.html
| ... | ... | @@ -9,8 +9,15 @@ |
| 9 | 9 | <b>{% trans "Please correct the errors below and try again" %}</b> |
| 10 | 10 | </div> |
| 11 | 11 | {% endif %} |
| 12 | + | |
| 13 | + {% for error in form.non_field_errors %} | |
| 14 | + <div class="alert alert-danger"> | |
| 15 | + {{ error }} | |
| 16 | + </div> | |
| 17 | + {% endfor %} | |
| 12 | 18 | </div> |
| 13 | 19 | |
| 20 | + | |
| 14 | 21 | <br> |
| 15 | 22 | <form action="{% url 'login' %}" method="post" role="form" class="form-horizontal signup"> |
| 16 | 23 | {% csrf_token %} | ... | ... |