chore: remove setting AURLANG and AURTZ on login

We don't need to set these cookies when logging in.
These settings are saved to the DB anyways.
(and they are picked up from there as well for any web requests,
when no cookies are given)

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2023-05-25 13:47:50 +02:00
parent edc4ac332d
commit 638ca7b1d0
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296

View file

@ -85,20 +85,6 @@ async def login_post(
httponly=secure, httponly=secure,
samesite=cookies.samesite(), samesite=cookies.samesite(),
) )
response.set_cookie(
"AURTZ",
user.Timezone,
secure=secure,
httponly=secure,
samesite=cookies.samesite(),
)
response.set_cookie(
"AURLANG",
user.LangPreference,
secure=secure,
httponly=secure,
samesite=cookies.samesite(),
)
response.set_cookie( response.set_cookie(
"AURREMEMBER", "AURREMEMBER",
remember_me, remember_me,
@ -125,5 +111,5 @@ async def logout(request: Request, next: str = Form(default="/")):
# to redirect to a get request. # to redirect to a get request.
response = RedirectResponse(url=next, status_code=HTTPStatus.SEE_OTHER) response = RedirectResponse(url=next, status_code=HTTPStatus.SEE_OTHER)
response.delete_cookie("AURSID") response.delete_cookie("AURSID")
response.delete_cookie("AURTZ") response.delete_cookie("AURREMEMBER")
return response return response