# HG changeset patch # User Kim Alvefur # Date 1390909626 -3600 # Node ID 2d061333d0c2d9c57a0bbd4d1d83d63ba87e5c6a # Parent 1ac28a953e5facc0b4933efc283e0dba68ce1a87 mod_log_sasl_mech: Logs authentication mechanism used diff -r 1ac28a953e5f -r 2d061333d0c2 mod_log_sasl_mech/mod_log_sasl_mech.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_log_sasl_mech/mod_log_sasl_mech.lua Tue Jan 28 12:47:06 2014 +0100 @@ -0,0 +1,5 @@ + +module:hook("authentication-success", function (event) + local sasl_handler = event.session.sasl_handler; + module:log("info", "Authenticated with %s", sasl_handler and sasl_handler.selected or "legacy auth"); +end);