mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
API call does not necessary use token, it could use basic auth
This commit is contained in:
parent
a3b12fd745
commit
fdf69dcd0d
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ handle(Call, Auth, Args, Version) when is_atom(Call), is_list(Args) ->
|
||||||
throw:{error, account_unprivileged} ->
|
throw:{error, account_unprivileged} ->
|
||||||
{403, 31, <<"Command need to be run with admin priviledge.">>};
|
{403, 31, <<"Command need to be run with admin priviledge.">>};
|
||||||
throw:{error, access_rules_unauthorized} ->
|
throw:{error, access_rules_unauthorized} ->
|
||||||
{403, 32, <<"AccessRules: Account associated to token does not have the right to perform the operation.">>};
|
{403, 32, <<"AccessRules: Account does not have the right to perform the operation.">>};
|
||||||
throw:{invalid_parameter, Msg} ->
|
throw:{invalid_parameter, Msg} ->
|
||||||
{400, iolist_to_binary(Msg)};
|
{400, iolist_to_binary(Msg)};
|
||||||
throw:{error, Why} when is_atom(Why) ->
|
throw:{error, Why} when is_atom(Why) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue