Merge pull request #2100 from flesueur/master

Authentication cache breaks when password changes
This commit is contained in:
Peter Bieringer
2026-04-23 12:32:15 +02:00
committed by GitHub

View File

@@ -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))