Software /
code /
prosody-modules
Diff
mod_sasl2/mod_sasl2.lua @ 5041:afa09e069afb
mod_sasl2: Fix missing namespace on failure condition (thanks tmolitor)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 21 Sep 2022 10:05:39 +0100 |
parent | 5039:c0d243b27e64 |
child | 5042:166fd192f39c |
line wrap: on
line diff
--- a/mod_sasl2/mod_sasl2.lua Wed Sep 14 17:21:42 2022 +0200 +++ b/mod_sasl2/mod_sasl2.lua Wed Sep 21 10:05:39 2022 +0100 @@ -119,7 +119,7 @@ module:hook("sasl2/c2s/failure", function (event) local session, condition, text = event.session, event.message, event.error_text; local failure = st.stanza("failure", { xmlns = xmlns_sasl2 }) - :tag(condition):up(); + :tag(condition, { xmlns = "urn:ietf:params:xml:ns:xmpp-sasl" }):up(); if text then failure:text_tag("text", text); end