24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-09-21 14:06:57 +02:00

extauth_cache can have value 0

This commit is contained in:
Badlop 2014-05-05 13:13:35 +02:00
parent fafec77e56
commit 70f00a1b1f

View File

@ -173,7 +173,7 @@ get_cache_option(Host) ->
case ejabberd_config:get_option(
{extauth_cache, Host},
fun(false) -> undefined;
(I) when is_integer(I), I > 0 -> I
(I) when is_integer(I), I >= 0 -> I
end) of
undefined -> false;
CacheTime -> {true, CacheTime}