diff options
author | Mickael Remond <mremond@process-one.net> | 2016-07-30 18:51:54 +0200 |
---|---|---|
committer | Mickael Remond <mremond@process-one.net> | 2016-07-30 18:51:54 +0200 |
commit | 674a8039ef0da080c9882bbe8ea3a476d78df0f5 (patch) | |
tree | 5feb442b40e6b80d03c91d383bae1981e12ba966 /src/ejabberd_commands.erl | |
parent | Make s2s stats commands more robust (diff) |
Add support for sending back missing scope error to API ReST command calls
Diffstat (limited to 'src/ejabberd_commands.erl')
-rw-r--r-- | src/ejabberd_commands.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_commands.erl b/src/ejabberd_commands.erl index 2c095440f..d9497322f 100644 --- a/src/ejabberd_commands.erl +++ b/src/ejabberd_commands.erl @@ -682,7 +682,7 @@ check_auth(Command, {User, Server, {oauth, Token}, _}) -> case ejabberd_oauth:check_token(User, Server, ScopeList, Token) of true -> {ok, User, Server}; - false -> + _ -> throw({error, invalid_account_data}) end; check_auth(_Command, {User, Server, Password, _}) when is_binary(Password) -> |