view mod_log_sasl_mech/mod_log_sasl_mech.lua @ 5021:f62b091b1c81

mod_sasl2: Eventually return true from success handler ...while allowing other handlers to run in the priority range -1000 to -2000.
author Matthew Wild <mwild1@gmail.com>
date Sun, 28 Aug 2022 11:25:21 +0100
parents 4baaa5a66a5a
children 5ff8022466ab
line wrap: on
line source


module:hook("authentication-success", function (event)
	local session = event.session;
	local sasl_handler = session.sasl_handler;
	session.log("info", "Authenticated with %s", sasl_handler and sasl_handler.selected or "legacy auth");
end);