portal:auth: remove touch in delete_session_cookie

This commit is contained in:
axolotle 2023-11-29 14:32:11 +01:00
parent 6f9203c98c
commit 246c513796

View file

@ -184,8 +184,6 @@ class Authenticator(BaseAuthenticator):
except Exception as e:
logger.debug(f"User logged out, but failed to properly invalidate the session : {e}")
session_file = f'{SESSION_FOLDER}/{infos["id"]}'
os.system(f'touch "{session_file}"')
response.delete_cookie("yunohost.portal", path="/")
def purge_expired_session_files(self):