changed feedback

This commit is contained in:
DaanoGames
2025-04-15 12:11:18 +02:00
parent f06f6e077b
commit 6a8412e9b2
3 changed files with 9 additions and 5 deletions

View File

@@ -5,12 +5,11 @@ Login
{% endblock %}
{% block content %}
<form class="bg-body-tertiary" method="POST">
{{ form.hidden_tag() }}
{% if feedback %}
<p>{{feedback}}</p>
{% endif %}
<form class="bg-body-tertiary" method="POST">
{{ form.hidden_tag() }}
<div>
{{ form.username.label }} <br> {{ form.username() }}
</div>

View File

@@ -27,7 +27,7 @@ def login():
login_user(user) # type: ignore
return redirect("/")
else:
feedback = "Foutieve login."
feedback = "Username or password is incorrect"
return render_template("login.html", form=login_form, feedback=feedback)

View File

@@ -42,3 +42,8 @@ form {
.submit {
padding-top: 10px;
}
p {
font-size: 16px;
color: red;
}