mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Add note
This commit is contained in:
parent
2addea1e08
commit
050a982c93
1 changed files with 3 additions and 0 deletions
|
@ -156,6 +156,9 @@ class BaseAuthenticator(object):
|
||||||
def _authenticate_session(self, session_id, session_token):
|
def _authenticate_session(self, session_id, session_token):
|
||||||
"""Retrieve a session and return its associated password"""
|
"""Retrieve a session and return its associated password"""
|
||||||
try:
|
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:
|
with self._open_sessionfile(session_id, 'r') as f:
|
||||||
stored_hash = f.read()
|
stored_hash = f.read()
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
|
|
Loading…
Add table
Reference in a new issue