mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Don't check mod_register restrictions in 'register' command
The commit reverts behaviour introduced in
1f2b8adc28
This commit is contained in:
parent
8b301fc93e
commit
4eaba13189
@ -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} ->
|
||||
|
Loading…
Reference in New Issue
Block a user