Don't use cached passwords if "extauth_cache: 0"

Regarding "extauth_cache", the guide says: "The integer 0 (zero) enables
caching for statistics, but doesn't use that cached information to
authenticate users."  Make sure the cached password isn't used even if
the user is currently logged in with another resource.
This commit is contained in:
Holger Weiss 2014-05-20 23:00:28 +02:00
parent 5010cea1a4
commit fca640f50f
1 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,8 @@ check_password_extauth(User, Server, Password) ->
try_register_extauth(User, Server, Password) ->
extauth:try_register(User, Server, Password).
check_password_cache(User, Server, Password, 0) ->
check_password_external_cache(User, Server, Password);
check_password_cache(User, Server, Password,
CacheTime) ->
case get_last_access(User, Server) of