Skip to content

Commit 71cd48c

Browse files
login form now shows error message when credentials don't match (#97)
1 parent 11a1fb1 commit 71cd48c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Algolyzer/templates/account/login.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ <h1 class="text-2xl font-bold text-center text-primary">
2222

2323
<form method="post" action="{% url 'account_login' %}" class="mt-6 space-y-4">
2424
{% csrf_token %}
25+
{% if form.non_field_errors %}
26+
<div class="text-error text-sm text-center">
27+
{% for error in form.non_field_errors %}
28+
{{ error }}
29+
{% endfor %}
30+
</div>
31+
{% endif %}
32+
2533

2634
{% for field in form %}
2735
{% if field.label == 'Remember Me' %}

0 commit comments

Comments
 (0)