Missing imports and wrong redirect

This commit is contained in:
Michał Gdula 2023-06-21 13:01:42 +03:00
parent a93a8cf04d
commit f2ee0279f0
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ def login():
if error:
for err in error:
flash(err, "error")
return redirect(url_for("views.account"))
return redirect(url_for("auth.auth"))
login_user(user, remember=True)
flash("Successfully logged in!", "success")