25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix anonymous auth

This commit is contained in:
Paweł Chmielowski 2016-04-07 10:02:37 +02:00
parent 5efcf0a175
commit d5c29360fb

View File

@ -49,5 +49,5 @@ mech_step(#state{server = Server} = S, ClientIn) ->
randoms:get_string()]),
case ejabberd_auth:is_user_exists(User, Server) of
true -> mech_step(S, ClientIn);
false -> {ok, [{username, User}, {auth_module, ejabberd_auth_anonymous}]}
false -> {ok, [{username, User}, {authzid, User}, {auth_module, ejabberd_auth_anonymous}]}
end.