From 507f0d060da30a8f65bec8b2ac1f08837d536b4c Mon Sep 17 00:00:00 2001 From: cbdev Date: Mon, 4 Jul 2022 19:21:34 +0200 Subject: Implement authentication modules for admin panel --- backend/NoneAuth.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 backend/NoneAuth.py (limited to 'backend/NoneAuth.py') 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 -- cgit v1.2.3