diff options
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 d12af0c99..742772b9a 100644 --- a/src/mod_http_api.erl +++ b/src/mod_http_api.erl @@ -114,7 +114,7 @@ check_permissions(#request{auth = HTTPAuth, headers = Headers}, Command) Auth = case HTTPAuth of {SJID, Pass} -> - case jlib:string_to_jid(SJID) of + case jid:from_string(SJID) of #jid{user = User, server = Server} -> case ejabberd_auth:check_password(User, Server, Pass) of true -> {ok, {User, Server, Pass, Admin}}; |