summaryrefslogtreecommitdiff
path: root/jimbrella/admin.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2021-11-24 19:48:40 +0800
committerFrederick Yin <fkfd@fkfd.me>2021-11-24 20:14:23 +0800
commit98133c0c3cf7e401cf5b85f7c4e9298bfcb4d00a (patch)
tree5d8e718ef3684bd7a77db5c9528c993a3b80492a /jimbrella/admin.py
parentfea01028d97dd8a11673912fd0c6f1453c34adad (diff)
New config entry "jimbrella_dir"
Add explanation for jimbrella_dir
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