aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-03-23 16:25:37 +0100
committerKim Alvefur <zash@zash.se>2022-03-23 16:25:37 +0100
commit5311134111f3c9a65ac12ffe5e06e3edf690cb47 (patch)
tree6769d28ba9be681051de9c94d1e92762fe54a924 /plugins
parent4dc57d01f124c16e4536bdc12dda77c563b00816 (diff)
parente950ca77ebd29994699c944ba6758bde441118cf (diff)
downloadprosody-5311134111f3c9a65ac12ffe5e06e3edf690cb47.tar.gz
prosody-5311134111f3c9a65ac12ffe5e06e3edf690cb47.zip
Merge 0.12->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_external_services.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_external_services.lua b/plugins/mod_external_services.lua
index 6daa45c7..ae418fd8 100644
--- a/plugins/mod_external_services.lua
+++ b/plugins/mod_external_services.lua
@@ -192,7 +192,7 @@ local function handle_credentials(event)
local action = stanza.tags[1];
if origin.type ~= "c2s" then
- origin.send(st.error_reply(stanza, "auth", "forbidden", "The 'port' and 'type' attributes are required."));
+ origin.send(st.error_reply(stanza, "auth", "forbidden"));
return true;
end
@@ -204,7 +204,7 @@ local function handle_credentials(event)
local requested_credentials = set.new();
for service in action:childtags("service") do
if not service.attr.type or not service.attr.host then
- origin.send(st.error_reply(stanza, "modify", "bad-request"));
+ origin.send(st.error_reply(stanza, "modify", "bad-request", "The 'port' and 'type' attributes are required."));
return true;
end