Don't check mod_register restrictions in 'register' command

The commit reverts behaviour introduced in
1f2b8adc28
This commit is contained in:
Evgeny Khramtsov 2019-05-28 15:14:45 +03:00
parent 8b301fc93e
commit 4eaba13189
1 changed files with 1 additions and 8 deletions

View File

@ -489,14 +489,7 @@ update_module(ModuleNameString) ->
%%%
register(User, Host, Password) ->
Ret = case gen_mod:is_loaded(Host, mod_register) of
true ->
{ok, IPRaw} = inet_parse:address("::ffff:127.0.0.1"),
mod_register:try_register(User, Host, Password, IPRaw);
false ->
ejabberd_auth:try_register(User, Host, Password)
end,
case Ret of
case ejabberd_auth:try_register(User, Host, Password) of
ok ->
{ok, io_lib:format("User ~s@~s successfully registered", [User, Host])};
{error, exists} ->