# HG changeset patch # User Matthew Wild # Date 1661695438 -3600 # Node ID 90772a9c92a07865bf0e38225f5453a20715606d # Parent 97d34d520cfa6a8bc6cab539f439dad870b80357 mod_sasl2: Include additional-data in SASL success response diff -r 97d34d520cfa -r 90772a9c92a0 mod_sasl2/mod_sasl2.lua --- a/mod_sasl2/mod_sasl2.lua Sun Aug 28 15:50:39 2022 +0200 +++ b/mod_sasl2/mod_sasl2.lua Sun Aug 28 15:03:58 2022 +0100 @@ -94,6 +94,9 @@ return true; end event.success = st.stanza("success", { xmlns = xmlns_sasl2 }); + if event.message then + event.success:text_tag("additional-data", base64.encode(event.message)); + end end, 1000); module:hook("sasl2/c2s/success", function (event)