aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/forms/submit.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-03-06 22:42:52 +0300
committerGravatar GitHub <[email protected]>2021-03-06 22:42:52 +0300
commit02154294da8b25bf7dae1b79f170aab888f92797 (patch)
tree82172d5742bbea923d88c643d5fc4c0f5f7deba0 /backend/routes/forms/submit.py
parentMake Admin Fetch Async (diff)
Renames Token To `token`
Changes the name for the token used to authorize with the backend. Co-authored-by: Joe Banks <[email protected]>
Diffstat (limited to 'backend/routes/forms/submit.py')
-rw-r--r--backend/routes/forms/submit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/routes/forms/submit.py b/backend/routes/forms/submit.py
index 4224586..8680b2d 100644
--- a/backend/routes/forms/submit.py
+++ b/backend/routes/forms/submit.py
@@ -75,7 +75,7 @@ class SubmitForm(Route):
expiry = None
response.set_cookie(
- "BackendToken", f"JWT {request.user.token}",
+ "token", f"JWT {request.user.token}",
secure=constants.PRODUCTION, httponly=True, samesite="strict",
max_age=(expiry - datetime.datetime.now()).seconds
)