Skip to content

Commit

Permalink
Fixed missing error when submitting empty username and password
Browse files Browse the repository at this point in the history
  • Loading branch information
jekil committed May 8, 2016
1 parent bb5d6af commit 9aabba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/users/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
</div>
</div>
</form>
{% if form.non_field_errors %}
{% if form.errors %}
<div class="alert alert-danger" id="failed-login-alert">
<i class="icon-warning-sign"></i> {{ form.non_field_errors|striptags }}
<i class="icon-warning-sign"></i> Your username and password didn't match. Please try again.
</div>
{% endif %}

Expand Down

0 comments on commit 9aabba4

Please sign in to comment.