25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +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:
Badlop 2022-12-28 17:11:11 +01:00
parent 353c68cfa6
commit 5d38143c3f
2 changed files with 2 additions and 2 deletions

View File

@ -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}};

View File

@ -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),