diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-01-30 16:34:29 +0100 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-01-30 16:34:29 +0100 |
commit | 56baa07d486f68fc5275d830837bdd918680d28b (patch) | |
tree | 2f21c44254321eb45a4794f0478075de70742918 /src/ejabberd_web_admin.erl | |
parent | Require that both tag and module matched in from of api_permission (diff) |
Reject request http_api request that have malformed Authentication header
Diffstat (limited to 'src/ejabberd_web_admin.erl')
-rw-r--r-- | src/ejabberd_web_admin.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ejabberd_web_admin.erl b/src/ejabberd_web_admin.erl index 0bcb8715..967af53a 100644 --- a/src/ejabberd_web_admin.erl +++ b/src/ejabberd_web_admin.erl @@ -254,6 +254,7 @@ get_auth_admin(Auth, HostHTTP, RPath, Method) -> catch _:{bad_jid, _} -> {unauthorized, <<"badformed-jid">>} end; + invalid -> {unauthorized, <<"no-auth-provided">>}; undefined -> {unauthorized, <<"no-auth-provided">>} end. |