mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
parent
fd76bc9242
commit
f0f3ec211e
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
-export([start/1,
|
-export([start/1,
|
||||||
stop/1,
|
stop/1,
|
||||||
|
use_cache/1,
|
||||||
allow_anonymous/1,
|
allow_anonymous/1,
|
||||||
is_sasl_anonymous_enabled/1,
|
is_sasl_anonymous_enabled/1,
|
||||||
is_login_anonymous_enabled/1,
|
is_login_anonymous_enabled/1,
|
||||||
|
@ -60,6 +61,9 @@ stop(Host) ->
|
||||||
ejabberd_hooks:delete(sm_remove_connection_hook, Host,
|
ejabberd_hooks:delete(sm_remove_connection_hook, Host,
|
||||||
?MODULE, unregister_connection, 100).
|
?MODULE, unregister_connection, 100).
|
||||||
|
|
||||||
|
use_cache(_) ->
|
||||||
|
false.
|
||||||
|
|
||||||
%% Return true if anonymous is allowed for host or false otherwise
|
%% Return true if anonymous is allowed for host or false otherwise
|
||||||
allow_anonymous(Host) ->
|
allow_anonymous(Host) ->
|
||||||
lists:member(?MODULE, ejabberd_auth:auth_modules(Host)).
|
lists:member(?MODULE, ejabberd_auth:auth_modules(Host)).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue