]> granicus.if.org Git - ejabberd/commitdiff
Disable cache for anonymous auth backend
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 17 Aug 2018 14:56:23 +0000 (17:56 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 17 Aug 2018 14:56:23 +0000 (17:56 +0300)
Fixes #2566

src/ejabberd_auth_anonymous.erl

index 9d4b3aff5c3bccfa310012023b7c938457814395..e3be79a4398f21227d9df330b9dfc98893c8e476 100644 (file)
@@ -31,6 +31,7 @@
 
 -export([start/1,
         stop/1,
+         use_cache/1,
         allow_anonymous/1,
         is_sasl_anonymous_enabled/1,
         is_login_anonymous_enabled/1,
@@ -60,6 +61,9 @@ stop(Host) ->
     ejabberd_hooks:delete(sm_remove_connection_hook, Host,
                          ?MODULE, unregister_connection, 100).
 
+use_cache(_) ->
+    false.
+
 %% Return true if anonymous is allowed for host or false otherwise
 allow_anonymous(Host) ->
     lists:member(?MODULE, ejabberd_auth:auth_modules(Host)).