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

Merge pull request #172 from weiss/accept-extauth-cache-false

Don't log an error when "extauth_cache: false" is specified
This commit is contained in:
badlop 2014-04-17 19:55:51 +02:00
commit 4b52a8e4e3

View File

@ -172,7 +172,9 @@ remove_user(User, Server, Password) ->
get_cache_option(Host) -> get_cache_option(Host) ->
case ejabberd_config:get_option( case ejabberd_config:get_option(
{extauth_cache, Host}, {extauth_cache, Host},
fun(I) when is_integer(I), I > 0 -> I end) of fun(false) -> undefined;
(I) when is_integer(I), I > 0 -> I
end) of
undefined -> false; undefined -> false;
CacheTime -> {true, CacheTime} CacheTime -> {true, CacheTime}
end. end.