diff options
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 |