diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-23 23:11:28 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-23 23:11:28 +0100 |
commit | 0e1961a7c505cade31afd6a18c81c82c76493d6e (patch) | |
tree | 84c27c944e689c9dfa93916967ef0cc1e27ce49b | |
parent | 64ccf28f856ee689571855af9594d4f419ef9511 (diff) | |
download | prosody-0e1961a7c505cade31afd6a18c81c82c76493d6e.tar.gz prosody-0e1961a7c505cade31afd6a18c81c82c76493d6e.zip |
mod_legacyauth: Report failure from sessionmanager (mostly invalid username)
-rw-r--r-- | plugins/mod_legacyauth.lua | 4 |
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 |