aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_legacyauth.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-24 00:39:45 +0100
committerKim Alvefur <zash@zash.se>2019-12-24 00:39:45 +0100
commit929103b8672e1395eedd663fb172a91ce197ec33 (patch)
tree94b4ebcb9443e8e6751e1903ade3c9dc8ec9d678 /plugins/mod_legacyauth.lua
parentb22125f0645b3281d99843dcdb7b44e92b9167cd (diff)
parentcf87960bda697b3727b5b62ab8c983a48b8c5314 (diff)
downloadprosody-929103b8672e1395eedd663fb172a91ce197ec33.tar.gz
prosody-929103b8672e1395eedd663fb172a91ce197ec33.zip
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_legacyauth.lua')
-rw-r--r--plugins/mod_legacyauth.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_legacyauth.lua b/plugins/mod_legacyauth.lua
index 0f41d3e7..941806d3 100644
--- a/plugins/mod_legacyauth.lua
+++ b/plugins/mod_legacyauth.lua
@@ -78,8 +78,10 @@ module:hook("stanza/iq/jabber:iq:auth:query", function(event)
session:close(); -- FIXME undo resource bind and auth instead of closing the session?
return true;
end
+ session.send(st.reply(stanza));
+ else
+ session.send(st.error_reply(stanza, "auth", "not-authorized", err));
end
- session.send(st.reply(stanza));
else
session.send(st.error_reply(stanza, "auth", "not-authorized"));
end