Merge pull request #3811 from UserlandAlchemist/fix/login-banner-preemptive

website: fix login banner showing before any attempt (fixes #3810)
This commit is contained in:
Griatch 2025-10-22 13:38:41 +02:00 committed by GitHub
commit 4a85b96297
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,7 @@
{% if user.is_authenticated %}
<div class="alert alert-info" role="alert">You are already logged in!</div>
{% else %}
{% if form.errors %}
{% if form.is_bound and form.non_field_errors %}
<div class="alert alert-danger" role="alert">Your username and password are incorrect. Please try again.</div>
{% endif %}
{% endif %}