comparison mod_sasl2_sm/mod_sasl2_sm.lua @ 5027:8b9ab351dd78

mod_sasl2_sm: Use a stanza method that actually exists
author Matthew Wild <mwild1@gmail.com>
date Mon, 29 Aug 2022 17:41:16 +0100
parents e3248d025d34
children 3e79876d135b
comparison
equal deleted inserted replaced
5026:e3248d025d34 5027:8b9ab351dd78
16 inline:tag("sm", { xmlns = xmlns_sm }):up(); 16 inline:tag("sm", { xmlns = xmlns_sm }):up();
17 end); 17 end);
18 18
19 module:hook_tag(xmlns_sasl2, "authenticate", function (session, auth) 19 module:hook_tag(xmlns_sasl2, "authenticate", function (session, auth)
20 -- Cache action for future processing (after auth success) 20 -- Cache action for future processing (after auth success)
21 session.sasl2_sm_action = auth:get_child_with_namespace(xmlns_sm); 21 session.sasl2_sm_action = auth:child_with_ns(xmlns_sm);
22 end, 100); 22 end, 100);
23 23
24 module:hook("sasl2/c2s/success", function (event) 24 module:hook("sasl2/c2s/success", function (event)
25 local session = event.session; 25 local session = event.session;
26 local sm_action = session.sasl2_sm_action; 26 local sm_action = session.sasl2_sm_action;