diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-01-15 10:16:29 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-01-15 10:16:29 +0100 |
commit | 061ed07680d0e1f6feb89ad281e46cb321dce21c (patch) | |
tree | 9390d5c187f00851b9346c8a230437e53b02e0b1 /api | |
parent | d7e6c155abc6ef8f0fa380b6af03da37602e7e40 (diff) |
token cookie working
Diffstat (limited to 'api')
-rw-r--r-- | api/auth/signup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/auth/signup.py b/api/auth/signup.py index 7007af7..5fa067d 100644 --- a/api/auth/signup.py +++ b/api/auth/signup.py @@ -38,6 +38,6 @@ def index(): token.add_token(user_id, token.hash_token(new_token)) res = make_response("", 200) - res.set_cookie("token", new_token["token"], expires = int(new_token["expireDate"] / 1000)) + res.set_cookie("token", new_token["token"], expires = int(new_token["expirationDate"] / 1000)) return res |