# HG changeset patch # User Kim Alvefur # Date 1577139088 -3600 # Node ID e1cb869e2f6c087ff149988bc5d9f8f73d33d71b # Parent 79fe4ed1332b3235cddcc99eb246276252f80570 mod_legacyauth: Report failure from sessionmanager (mostly invalid username) diff -r 79fe4ed1332b -r e1cb869e2f6c plugins/mod_legacyauth.lua --- a/plugins/mod_legacyauth.lua Mon Dec 23 22:30:21 2019 +0100 +++ b/plugins/mod_legacyauth.lua Mon Dec 23 23:11:28 2019 +0100 @@ -78,8 +78,10 @@ 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