diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-03-25 18:16:50 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-03-25 18:16:50 +0300 |
commit | 46568fb9596d8203c635477b30c91d2928847dea (patch) | |
tree | a3aad804b0bcab951f9ebfaf3df1db27c550db7f /src/mod_http_api.erl | |
parent | Merge pull request #1035 from processone/modular-tests-run (diff) | |
parent | Use SASL PLAIN authzid as client identity if auth module permits it (diff) |
Merge commit 'refs/pull/524/head' of github.com:processone/ejabberd into sasl-api-change
Diffstat (limited to 'src/mod_http_api.erl')
-rw-r--r-- | src/mod_http_api.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl index 7f86d5cc..3b7a09cb 100644 --- a/src/mod_http_api.erl +++ b/src/mod_http_api.erl @@ -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; |