Mercurial > prosody-modules
view mod_log_auth/mod_log_auth.lua @ 407:41feaf7fd8ac
mod_auth_log: New module (currently) to log failed auth attempts and their IP address, requires trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 30 Aug 2011 13:34:39 -0400 |
| parents | |
| children | 608d9019b0de |
line wrap: on
line source
module:hook("authentication-failure", function (event) module:log("info", "Failed authentication attempt (%s) from IP: %s", event.condition, event.session.ip); end);
