diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-25 11:25:56 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-25 11:25:56 +0100 |
commit | 390f822a7257b03fe721f556b150b5c23a5aa0ae (patch) | |
tree | 87f00a61bf13cdf55e05afbd5cf4f02c1aa5569d /api/events.py | |
parent | a58a34f4d312cfd392477631215821826db4fa3f (diff) |
@auth_required in /social/accept endpoint
Diffstat (limited to 'api/events.py')
-rw-r--r-- | api/events.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api/events.py b/api/events.py index 8974666..c811be4 100644 --- a/api/events.py +++ b/api/events.py @@ -10,10 +10,13 @@ import time def get_token(environ): cookie = environ.get("HTTP_COOKIE") if not cookie: return None + parsed = cookies.SimpleCookie() parsed.load(cookie) + token = parsed.get("token") if not token: return None + return token.value @io.on("connect") |