Skip to content

Commit

Permalink
added an alert message if you fail login
Browse files Browse the repository at this point in the history
  • Loading branch information
qgriffith committed Feb 25, 2012
1 parent a2330d3 commit 84383f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/registration/_login_form.html
@@ -1,7 +1,9 @@
{# login form called via an include statement #}
{% load i18n %}
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
<div class="alert alert-error">
<strong>{% trans 'Alert!' %}</strong> {% trans "Your username and password didn't match. Please try again."%}
</div>
{% endif %}

<form class="well form-vertical" method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %}
Expand Down

0 comments on commit 84383f8

Please sign in to comment.