summaryrefslogtreecommitdiff
path: root/jimbrella/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'jimbrella/admin.py')
-rw-r--r--jimbrella/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jimbrella/admin.py b/jimbrella/admin.py
index eaf0e54..49cbf55 100644
--- a/jimbrella/admin.py
+++ b/jimbrella/admin.py
@@ -17,7 +17,7 @@ def check_privilege():
# only clients who have obtained a session and sent it in the Cookie header
# will have a decryptable username here
if "username" not in session:
- return redirect(url_for("auth.login"))
+ return redirect(url_for("auth.auth", action="login"))
username = session["username"]
user = users.find(username) # under normal circumstances it must exist