1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 02:29:34 +02:00

Merge commit 'refs/pull/524/head' of github.com:processone/ejabberd into sasl-api-change

This commit is contained in:
Evgeniy Khramtsov 2016-03-25 18:16:50 +03:00
commit 46568fb959
18 changed files with 157 additions and 116 deletions

View file

@ -116,7 +116,7 @@ check_permissions(#request{auth = HTTPAuth, headers = Headers}, Command)
{SJID, Pass} ->
case jid:from_string(SJID) of
#jid{user = User, server = Server} ->
case ejabberd_auth:check_password(User, Server, Pass) of
case ejabberd_auth:check_password(User, <<"">>, Server, Pass) of
true -> {ok, {User, Server, Pass, Admin}};
false -> false
end;