# HG changeset patch # User Kim Alvefur # Date 1329055692 -3600 # Node ID b1e10c327d663a95fff8b681a0e5eb6ac94e2dba # Parent 55b61221ecb8959e84e277230a77f6365d886ffd mod_saslauth: Fire authentication-failure if make_authenticated() failed. diff -r 55b61221ecb8 -r b1e10c327d66 plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Sun Feb 12 15:05:31 2012 +0100 +++ b/plugins/mod_saslauth.lua Sun Feb 12 15:08:12 2012 +0100 @@ -60,6 +60,7 @@ session:reset_stream(); else module:log("warn", "SASL succeeded but username was invalid"); + module:fire_event("authentication-failure", { session = session, condition = "not-authorized", text = err }); session.sasl_handler = session.sasl_handler:clean_clone(); return "failure", "not-authorized", "User authenticated successfully, but username was invalid"; end