Fix anonymous auth

This commit is contained in:
Paweł Chmielowski 2016-04-07 10:02:37 +02:00
parent 5efcf0a175
commit d5c29360fb
1 changed files with 1 additions and 1 deletions

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.