Make unauth handler redirect to login

This commit is contained in:
Cara Salter 2024-06-03 18:15:18 -04:00
parent a3c89dd478
commit f5eb90b73d
No known key found for this signature in database
GPG key ID: A8A3A601440EADA5

View file

@ -50,7 +50,7 @@ def user_loader(user_id):
@login.unauthorized_handler @login.unauthorized_handler
def unauth(): def unauth():
flash("Please login first") flash("Please login first")
return redirect(url_for("registration.register")) return redirect(url_for("registration.login"))
class PwResetRequest(db.Model): class PwResetRequest(db.Model):