Better flash msgs

This commit is contained in:
2025-04-17 15:38:20 +02:00
parent 587fb649a6
commit d83b59953b
3 changed files with 19 additions and 9 deletions

View File

@@ -85,6 +85,7 @@ def update():
)
db.session.commit()
logout_user()
flash("Password changed succesfully, please log back in")
return redirect(url_for("auth.login"))
return render_template("update_user.html", form=form, active_page="update")
@@ -104,6 +105,7 @@ def login():
user.password, password # type: ignore
):
login_user(user) # type: ignore
flash("Logged in succesfully")
return redirect("/")
else:
feedback = "Username or password is incorrect"