Comparison

mod_sasl2_bind2/mod_sasl2_bind2.lua @ 5046:904dde7be981

mod_sasl2_bind2: Remove deprecated <jid> element from <bound> This is now communicated via SASL2's <authorization-identity> element.
author Matthew Wild <mwild1@gmail.com>
date Thu, 22 Sep 2022 16:37:59 +0100
parent 5045:6db64f64c8c9
child 5047:023f21bfcc08
comparison
equal deleted inserted replaced
5045:6db64f64c8c9 5046:904dde7be981
35 session.log("debug", "Resource bind failed: %s", err_msg or err); 35 session.log("debug", "Resource bind failed: %s", err_msg or err);
36 return nil, { type = err_type, condition = err, text = err_msg }; 36 return nil, { type = err_type, condition = err, text = err_msg };
37 end 37 end
38 38
39 session.log("debug", "Resource bound: %s", session.full_jid); 39 session.log("debug", "Resource bound: %s", session.full_jid);
40 return st.stanza("bound", { xmlns = xmlns_bind2 }) 40 return st.stanza("bound", { xmlns = xmlns_bind2 });
41 :text_tag("jid", session.full_jid)
42 end 41 end
43 42
44 -- Enable inline features requested by the client 43 -- Enable inline features requested by the client
45 44
46 local function enable_features(session, bind_request, bind_result) 45 local function enable_features(session, bind_request, bind_result)