Comparison

mod_sasl2/mod_sasl2.lua @ 5042:166fd192f39c

mod_sasl2: Move <inline/> into <authentication> This is a small change we've agreed upon in the upcoming version of the XEP.
author Matthew Wild <mwild1@gmail.com>
date Wed, 21 Sep 2022 10:25:34 +0100
parent 5041:afa09e069afb
child 5044:f64d834ba744
comparison
equal deleted inserted replaced
5041:afa09e069afb 5042:166fd192f39c
92 end 92 end
93 end 93 end
94 94
95 features:add_direct_child(mechanisms); 95 features:add_direct_child(mechanisms);
96 96
97 local inline = st.stanza("inline", { xmlns = xmlns_sasl2 }); 97 local inline = st.stanza("inline");
98 module:fire_event("advertise-sasl-features", { session = origin, features = inline }); 98 module:fire_event("advertise-sasl-features", { session = origin, features = inline });
99 features:add_direct_child(inline); 99 mechanisms:add_direct_child(inline);
100 end, 1); 100 end, 1);
101 101
102 local function handle_status(session, status, ret, err_msg) 102 local function handle_status(session, status, ret, err_msg)
103 local err = nil; 103 local err = nil;
104 if status == "error" then 104 if status == "error" then