Handle both cookies in the same way (please let me logout)

This commit is contained in:
selfhoster1312 2023-08-13 23:11:31 +02:00
parent db1670ca5d
commit 6f8b3fd57f
2 changed files with 3 additions and 4 deletions

View file

@ -138,6 +138,7 @@ class Authenticator(BaseAuthenticator):
secure=True, secure=True,
secret=session_secret, secret=session_secret,
httponly=True, httponly=True,
path="/"
# samesite="strict", # Bottle 0.12 doesn't support samesite, to be added in next versions # samesite="strict", # Bottle 0.12 doesn't support samesite, to be added in next versions
) )
@ -172,5 +173,4 @@ class Authenticator(BaseAuthenticator):
def delete_session_cookie(self): def delete_session_cookie(self):
from bottle import response from bottle import response
response.set_cookie("yunohost.admin", "", max_age=-1) response.delete_cookie("yunohost.admin", path="/")
response.delete_cookie("yunohost.admin")

View file

@ -172,5 +172,4 @@ class Authenticator(BaseAuthenticator):
from bottle import response from bottle import response
response.set_cookie("yunohost.portal", "") response.delete_cookie("yunohost.portal", path="/")
response.delete_cookie("yunohost.portal")