Software / code / prosody
Diff
plugins/mod_legacyauth.lua @ 11200:bf8f2da84007
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 05 Nov 2020 22:31:25 +0100 |
| parent | 10557:e1cb869e2f6c |
| child | 12328:a80314101bc6 |
line wrap: on
line diff
--- a/plugins/mod_legacyauth.lua Thu Nov 05 22:27:17 2020 +0100 +++ b/plugins/mod_legacyauth.lua Thu Nov 05 22:31:25 2020 +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