This commit is contained in:
Alexandre Aubin 2019-08-23 02:40:41 +02:00
parent 2addea1e08
commit 050a982c93

View file

@ -156,6 +156,9 @@ class BaseAuthenticator(object):
def _authenticate_session(self, session_id, session_token):
"""Retrieve a session and return its associated password"""
try:
# FIXME : shouldn't we also add a check that this session file
# is not too old ? e.g. not older than 24 hours ? idk...
with self._open_sessionfile(session_id, 'r') as f:
stored_hash = f.read()
except IOError as e: