Login redirect testing
This commit is contained in:
parent
9144ad89b0
commit
077e57ef00
1 changed files with 3 additions and 2 deletions
|
@ -90,8 +90,9 @@ def login():
|
|||
flask_login.login_user(user)
|
||||
|
||||
flash("Welcome back!")
|
||||
next = request.args.get('next')
|
||||
|
||||
return redirect(url_for("dashboard.home"))
|
||||
return redirect(next or url_for("dashboard.home"))
|
||||
else:
|
||||
flash("Incorrect password")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue