25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Merge pull request #217 from weiss/fix-extauth-cache-usage

Don't use cached passwords if "extauth_cache: 0"
This commit is contained in:
badlop 2014-05-21 17:35:54 +02:00
commit 69abb48c90

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