Comparison

mod_sasl2/mod_sasl2.lua @ 5018:ed2a9a4c4f01

mod_sasl2: Return status from event handlers Without this, clients would get "unsupported-stanza-type" even on successfully handled responses.
author Matthew Wild <mwild1@gmail.com>
date Sun, 28 Aug 2022 11:11:50 +0100
parent 4796:9c7635911c56
child 5019:c83ce822f105
comparison
equal deleted inserted replaced
5017:96e83b4a93f7 5018:ed2a9a4c4f01
63 if not errors.is_err(err) then 63 if not errors.is_err(err) then
64 err = errors.new({ condition = err, text = err_msg }, { session = session }); 64 err = errors.new({ condition = err, text = err_msg }, { session = session });
65 end 65 end
66 end 66 end
67 67
68 module:fire_event("sasl2/"..session.base_type.."/"..status, { 68 return module:fire_event("sasl2/"..session.base_type.."/"..status, {
69 session = session, 69 session = session,
70 message = ret; 70 message = ret;
71 error = err; 71 error = err;
72 }); 72 });
73 end 73 end