From bf49c26a315eb11163c91fee55948a0beea55f1b Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 4 Jun 2021 01:28:43 +0530 Subject: fix 401 error not being thrown --- app/views/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 -- cgit v1.2.3