Comparison

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
comparison
equal deleted inserted replaced
5040:fa99279f9d40 5041:afa09e069afb
117 end 117 end
118 118
119 module:hook("sasl2/c2s/failure", function (event) 119 module:hook("sasl2/c2s/failure", function (event)
120 local session, condition, text = event.session, event.message, event.error_text; 120 local session, condition, text = event.session, event.message, event.error_text;
121 local failure = st.stanza("failure", { xmlns = xmlns_sasl2 }) 121 local failure = st.stanza("failure", { xmlns = xmlns_sasl2 })
122 :tag(condition):up(); 122 :tag(condition, { xmlns = "urn:ietf:params:xml:ns:xmpp-sasl" }):up();
123 if text then 123 if text then
124 failure:text_tag("text", text); 124 failure:text_tag("text", text);
125 end 125 end
126 session.send(failure); 126 session.send(failure);
127 return true; 127 return true;