mod_log_auth/mod_log_auth.lua
author Kim Alvefur <zash@zash.se>
Wed, 28 Aug 2013 18:42:10 +0200
changeset 1172 1e8b793d8ff9
parent 1097 608d9019b0de
child 1427 322a076f53e8
permissions -rw-r--r--
mod_lastlog: Return a non-zero exit code if no lastlog records were found


module:hook("authentication-failure", function (event)
	module:log("info", "Failed authentication attempt (%s) from IP: %s", event.condition or "unknown-condition", event.session.ip or "?");
end);