Update moulinette/authenticators/__init__.py

Co-Authored-By: Timost <Timost@users.noreply.github.com>
This commit is contained in:
Alexandre Aubin 2019-11-01 16:47:05 +01:00 committed by GitHub
parent 97aad385b4
commit e77e27730b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,7 +154,7 @@ class BaseAuthenticator(object):
f.write(hash_)
def _authenticate_session(self, session_id, session_token):
"""Retrieve a session and return its associated password"""
"""Checks session and token against the stored session token"""
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...