mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 02:29:34 +02:00
Move JID related functions to jid.erl (#847)
This commit is contained in:
parent
7eddfe073b
commit
95265dd3ad
81 changed files with 1189 additions and 1072 deletions
|
@ -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}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue