Make unauth handler redirect to login
This commit is contained in:
parent
a3c89dd478
commit
f5eb90b73d
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ def user_loader(user_id):
|
|||
@login.unauthorized_handler
|
||||
def unauth():
|
||||
flash("Please login first")
|
||||
return redirect(url_for("registration.register"))
|
||||
return redirect(url_for("registration.login"))
|
||||
|
||||
|
||||
class PwResetRequest(db.Model):
|
||||
|
|
Loading…
Add table
Reference in a new issue