mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix auth verification in ejabberd_xmlrpc (thanks to Vicis)
This commit is contained in:
parent
27302fb7ac
commit
e107e78773
@ -345,8 +345,10 @@ build_fault_response(Code, ParseString, ParseArgs) ->
|
|||||||
do_command(AccessCommands, Auth, Command, AttrL, ArgsF,
|
do_command(AccessCommands, Auth, Command, AttrL, ArgsF,
|
||||||
ResultF) ->
|
ResultF) ->
|
||||||
ArgsFormatted = format_args(AttrL, ArgsF),
|
ArgsFormatted = format_args(AttrL, ArgsF),
|
||||||
|
{UserT, ServerT, PasswordT} = Auth,
|
||||||
|
AuthBin = {list_to_binary(UserT), list_to_binary(ServerT), list_to_binary(PasswordT)},
|
||||||
Result =
|
Result =
|
||||||
ejabberd_commands:execute_command(AccessCommands, Auth,
|
ejabberd_commands:execute_command(AccessCommands, AuthBin,
|
||||||
Command, ArgsFormatted),
|
Command, ArgsFormatted),
|
||||||
ResultFormatted = format_result(Result, ResultF),
|
ResultFormatted = format_result(Result, ResultF),
|
||||||
{command_result, ResultFormatted}.
|
{command_result, ResultFormatted}.
|
||||||
|
Loading…
Reference in New Issue
Block a user