aboutsummaryrefslogtreecommitdiff
path: root/app/views/auth.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-04 01:28:43 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-04 01:28:43 +0530
commitbf49c26a315eb11163c91fee55948a0beea55f1b (patch)
treef460c9185b7f9685e74fc916e194606456eec3c4 /app/views/auth.py
parentd29872548f7095ee629b92b4fe45caa99fc6ea34 (diff)
fix 401 error not being thrown
Diffstat (limited to 'app/views/auth.py')
-rw-r--r--app/views/auth.py2
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