mod_sasl2_bind2: Remove deprecated <jid> element from <bound>
authorMatthew Wild <mwild1@gmail.com>
Thu, 22 Sep 2022 16:37:59 +0100
changeset 5050 904dde7be981
parent 5049 6db64f64c8c9
child 5051 023f21bfcc08
mod_sasl2_bind2: Remove deprecated <jid> element from <bound> This is now communicated via SASL2's <authorization-identity> element.
mod_sasl2_bind2/mod_sasl2_bind2.lua
--- a/mod_sasl2_bind2/mod_sasl2_bind2.lua	Thu Sep 22 12:52:14 2022 +0100
+++ b/mod_sasl2_bind2/mod_sasl2_bind2.lua	Thu Sep 22 16:37:59 2022 +0100
@@ -37,8 +37,7 @@
 	end
 
 	session.log("debug", "Resource bound: %s", session.full_jid);
-	return st.stanza("bound", { xmlns = xmlns_bind2 })
-		:text_tag("jid", session.full_jid)
+	return st.stanza("bound", { xmlns = xmlns_bind2 });
 end
 
 -- Enable inline features requested by the client