aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_legacyauth.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-23 23:11:28 +0100
committerKim Alvefur <zash@zash.se>2019-12-23 23:11:28 +0100
commit4b548a129b90bbd17606bfcfe79bda47731ebe5d (patch)
tree84c27c944e689c9dfa93916967ef0cc1e27ce49b /plugins/mod_legacyauth.lua
parent77daebcbc2b412173ac9a41dd5327ff269902f90 (diff)
downloadprosody-4b548a129b90bbd17606bfcfe79bda47731ebe5d.tar.gz
prosody-4b548a129b90bbd17606bfcfe79bda47731ebe5d.zip
mod_legacyauth: Report failure from sessionmanager (mostly invalid username)
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