mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Initialize captcha system after loading modules and external modules
Since recently, ejabberd_captcha instead of a script may use a module, for example the external module mod_ecaptcha, which must be loaded first.
This commit is contained in:
parent
353c68cfa6
commit
5d38143c3f
@ -294,7 +294,7 @@ init([]) ->
|
||||
case check_captcha_setup() of
|
||||
true ->
|
||||
register_handlers(),
|
||||
ejabberd_hooks:add(config_reloaded, ?MODULE, config_reloaded, 50),
|
||||
ejabberd_hooks:add(config_reloaded, ?MODULE, config_reloaded, 70),
|
||||
{ok, #state{enabled = true}};
|
||||
false ->
|
||||
{ok, #state{enabled = false}};
|
||||
|
@ -61,9 +61,9 @@ init([]) ->
|
||||
simple_supervisor(ejabberd_s2s_out),
|
||||
worker(ejabberd_s2s),
|
||||
simple_supervisor(ejabberd_service),
|
||||
worker(ejabberd_captcha),
|
||||
worker(ext_mod),
|
||||
supervisor(ejabberd_gen_mod_sup, gen_mod),
|
||||
worker(ejabberd_captcha),
|
||||
worker(ejabberd_acme),
|
||||
worker(ejabberd_auth),
|
||||
worker(ejabberd_oauth),
|
||||
|
Loading…
Reference in New Issue
Block a user