25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Fix missing validation from 633b68db1 (#1900)

This commit is contained in:
Christophe Romain 2017-08-04 11:53:32 +02:00
parent 7815164216
commit 3d185c0fb8

View File

@ -261,12 +261,12 @@ try_register(User, Server, Password) ->
ok;
(Mod, _) ->
db_try_register(
User, Server, Password, Mod)
LUser, LServer, Password, Mod)
end, {error, not_allowed},
auth_modules(LServer)) of
ok ->
ejabberd_hooks:run(
register_user, Server, [User, Server]);
register_user, LServer, [LUser, LServer]);
{error, _} = Err ->
Err
end;