Merge pull request #2100 from flesueur/master
Authentication cache breaks when password changes
This commit is contained in:
@@ -306,6 +306,7 @@ class BaseAuth:
|
|||||||
result_from_cache = True
|
result_from_cache = True
|
||||||
else:
|
else:
|
||||||
logger.debug("Login successful cache entry for user+password not matching: '%s'", login)
|
logger.debug("Login successful cache entry for user+password not matching: '%s'", login)
|
||||||
|
digest = ""
|
||||||
else:
|
else:
|
||||||
# login not found in cache, caculate always to avoid timing attacks
|
# login not found in cache, caculate always to avoid timing attacks
|
||||||
digest = self._cache_digest(login, password, str(time_ns))
|
digest = self._cache_digest(login, password, str(time_ns))
|
||||||
|
|||||||
Reference in New Issue
Block a user