Login polish (#2180)

* feat: set `samesite="none", secure=True` for `is_lnbits_user_authorized` (required in iframe)
* feat: add icons for User ID actions
* feat: set `samesite="none", secure=True
This commit is contained in:
Vlad Stan
2023-12-14 15:07:22 +01:00
committed by GitHub
parent bb918a8523
commit db72953310
3 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -524,7 +524,9 @@ def register_exception_handlers(app: FastAPI):
response = RedirectResponse("/")
response.delete_cookie("cookie_access_token")
response.delete_cookie("is_lnbits_user_authorized")
response.set_cookie("is_access_token_expired", "true")
response.set_cookie(
"is_access_token_expired", "true", samesite="none", secure=True
)
return response
return template_renderer().TemplateResponse(