Software /
code /
prosody-modules
Comparison
mod_sasl2_bind2/mod_sasl2_bind2.lua @ 5037:8a8100fff580
mod_sasl2_bind2, mod_sasl2_sm: Move sasl2_sm_success to session
...to allow referencing it across multiple different events.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 04 Sep 2022 09:51:36 +0100 |
parent | 5036:9ef5625d0d39 |
child | 5039:c0d243b27e64 |
comparison
equal
deleted
inserted
replaced
5036:9ef5625d0d39 | 5037:8a8100fff580 |
---|---|
72 | 72 |
73 local bind_request = session.sasl2_bind_request; | 73 local bind_request = session.sasl2_bind_request; |
74 if not bind_request then return; end -- No bind requested | 74 if not bind_request then return; end -- No bind requested |
75 session.sasl2_bind_request = nil; | 75 session.sasl2_bind_request = nil; |
76 | 76 |
77 local sm_success = event.sasl2_sm_success; | 77 local sm_success = session.sasl2_sm_success; |
78 if sm_success and sm_success.type == "resumed" then | 78 if sm_success and sm_success.type == "resumed" then |
79 return; -- No need to bind a resource | 79 return; -- No need to bind a resource |
80 end | 80 end |
81 | 81 |
82 local bind_result, err = do_bind(session, bind_request); | 82 local bind_result, err = do_bind(session, bind_request); |