equal
deleted
inserted
replaced
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; |