Login redirect testing

This commit is contained in:
willhockey20 2024-01-12 19:32:06 -05:00
parent 9144ad89b0
commit 077e57ef00

View file

@ -90,8 +90,9 @@ def login():
flask_login.login_user(user) flask_login.login_user(user)
flash("Welcome back!") flash("Welcome back!")
next = request.args.get('next')
return redirect(url_for("dashboard.home")) return redirect(next or url_for("dashboard.home"))
else: else:
flash("Incorrect password") flash("Incorrect password")