diff --git a/Flask/app.py b/Flask/app.py index 146ef32..1d36293 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -159,7 +159,7 @@ def change_password(): # handle login failed @app.errorhandler(401) def unauthorized(e): - return(redirect("login")) + return(redirect("/login")) # callback to reload the user object diff --git a/Flask/templates/login.html b/Flask/templates/login.html index 7f5dbd3..20054b1 100644 --- a/Flask/templates/login.html +++ b/Flask/templates/login.html @@ -3,7 +3,7 @@ {% block content %} {%if not current_user.is_authenticated %} -