Software /
code /
prosody-modules
Comparison
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 |
child | 1097:608d9019b0de |
comparison
equal
deleted
inserted
replaced
406:a6d215c73c47 | 407:41feaf7fd8ac |
---|---|
1 | |
2 module:hook("authentication-failure", function (event) | |
3 module:log("info", "Failed authentication attempt (%s) from IP: %s", event.condition, event.session.ip); | |
4 end); |