aboutsummaryrefslogtreecommitdiff
path: root/backend/NoneAuth.py
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2022-07-04 19:21:34 +0200
committercbdev <cb@cbcdn.com>2022-07-04 19:21:34 +0200
commit507f0d060da30a8f65bec8b2ac1f08837d536b4c (patch)
treeb2c5a1f9cc5080fb7f2586e2371fce443e43fbaa /backend/NoneAuth.py
parent4369d6a7f024f9ebf3c5f41a8fe17bfc65d0a820 (diff)
downloadcargohold-507f0d060da30a8f65bec8b2ac1f08837d536b4c.tar.gz
cargohold-507f0d060da30a8f65bec8b2ac1f08837d536b4c.tar.bz2
cargohold-507f0d060da30a8f65bec8b2ac1f08837d536b4c.zip
Implement authentication modules for admin panel
Diffstat (limited to 'backend/NoneAuth.py')
-rw-r--r--backend/NoneAuth.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/backend/NoneAuth.py b/backend/NoneAuth.py
new file mode 100644
index 0000000..0522e59
--- /dev/null
+++ b/backend/NoneAuth.py
@@ -0,0 +1,15 @@
+import config
+import utils
+
+# This authentication does not support any login to the web administration interface.
+# Use this if you only want to manage cargohold from the command line or have your
+# own management interface.
+
+def login(env, post):
+ return utils.redirect(config.homepage)
+
+def get(env):
+ return None
+
+def logout():
+ return False