diff options
author | cbdev <cb@cbcdn.com> | 2022-07-04 19:21:34 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2022-07-04 19:21:34 +0200 |
commit | 507f0d060da30a8f65bec8b2ac1f08837d536b4c (patch) | |
tree | b2c5a1f9cc5080fb7f2586e2371fce443e43fbaa /backend/utils.py | |
parent | 4369d6a7f024f9ebf3c5f41a8fe17bfc65d0a820 (diff) | |
download | cargohold-507f0d060da30a8f65bec8b2ac1f08837d536b4c.tar.gz cargohold-507f0d060da30a8f65bec8b2ac1f08837d536b4c.tar.bz2 cargohold-507f0d060da30a8f65bec8b2ac1f08837d536b4c.zip |
Implement authentication modules for admin panel
Diffstat (limited to 'backend/utils.py')
-rw-r--r-- | backend/utils.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/backend/utils.py b/backend/utils.py new file mode 100644 index 0000000..ddb0adc --- /dev/null +++ b/backend/utils.py @@ -0,0 +1,12 @@ +import config + +def redirect(target): + return ["", [('Content-Type','text/html'), ("Location", target)], "302 Redirect"] + +def ensure_user(name): + # TODO + return + +def is_user(name): + # TODO + return False |