Mercurial > prosody-hg
diff plugins/mod_legacyauth.lua @ 10563:e8db377a2983
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 24 Dec 2019 00:39:45 +0100 |
| parents | e1cb869e2f6c |
| children | a80314101bc6 |
line wrap: on
line diff
--- a/plugins/mod_legacyauth.lua Tue Dec 24 00:26:40 2019 +0100 +++ b/plugins/mod_legacyauth.lua Tue Dec 24 00:39:45 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
