Commits

Chris Moffitt committed 5a06d3e

Make sure login form shows errors correctly.

  • Participants
  • Parent commits efd4515

Comments (0)

Files changed (1)

File satchmo/apps/satchmo_store/contact/templates/registration/login.html

 <form method="post" action=".">
 <table>
 <tr><td><label for="id_username">{% trans 'Email address' %}:</label></td><td>{{ form.username }}</td></tr>
-{% if form.username.errors %}<tr><td colspan="2">{{ loginform.username.errors|join:", " }}</td></tr>{% endif %}
+{% if form.username.errors %}<tr><td class="error" colspan="2">***{{ form.username.errors|join:", " }}</td></tr>{% endif %}
 <tr><td><label for="id_password">{% trans 'Password' %}:</label></td><td>{{ form.password }}</td></tr>
-{% if form.password.errors %}<tr><td colspan="2">{{ loginform.password.errors|join:", " }}</td></tr>{% endif %}
+{% if form.password.errors %}<tr><td class="error" colspan="2">***{{ form.password.errors|join:", " }}</td></tr>{% endif %}
 </table>
 
 <input type="submit" value="{% trans 'Login' %}" />