Skip to content

Commit

Permalink
Merge pull request #16 from AlexandraPoturaeva/fix_authentiation_form…
Browse files Browse the repository at this point in the history
…s_error_alerting

fix displaying of non field errors in authentication forms
  • Loading branch information
AlexandraPoturaeva authored Nov 24, 2023
2 parents cccf369 + 81662d2 commit dc2f804
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions users/templates/authentication_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ <h2>
<form method="post" novalidate>
{% csrf_token %}

{% if form.non_field_errors %}
<div class="alert alert-danger" role="alert">
{{ form.non_field_errors }}
</div>
{% endif %}

{% for field in form %}
{% if field.errors %}
<div class="alert alert-danger" role="alert">
Expand Down

0 comments on commit dc2f804

Please sign in to comment.