mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-28 05:52:21 +00:00
Show non-field errors on email login form
This commit is contained in:
@@ -58,6 +58,15 @@
|
||||
<div class="mx-auto space-y-4 w-2/3" id="signup_form">
|
||||
{% csrf_token %}
|
||||
|
||||
<!-- Display non-field errors -->
|
||||
{% if form.non_field_errors %}
|
||||
<div class="alert alert-danger">
|
||||
{% for error in form.non_field_errors %}
|
||||
{{ error }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% for field in form.visible_fields %}
|
||||
<div>
|
||||
{% if field.label == "E-mail" or field.label == "Password" %}
|
||||
|
||||
Reference in New Issue
Block a user