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:
+3
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user