diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 01:28:43 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 01:28:43 +0530 |
commit | bf49c26a315eb11163c91fee55948a0beea55f1b (patch) | |
tree | f460c9185b7f9685e74fc916e194606456eec3c4 /app/views/auth.py | |
parent | d29872548f7095ee629b92b4fe45caa99fc6ea34 (diff) |
fix 401 error not being thrown
Diffstat (limited to 'app/views/auth.py')
-rw-r--r-- | app/views/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/auth.py b/app/views/auth.py index 1d1cafb..26b8d39 100644 --- a/app/views/auth.py +++ b/app/views/auth.py @@ -54,4 +54,4 @@ def logout(): @login_manager.unauthorized_handler def unauthorized(): - return render_template("message.html",message="You need to be logged in to access this resource", code=401) + return render_template("message.html",message="You need to be logged in to access this resource", code=401), 401 |