Thanks for the ext, nice idea! Can I suggest to slightly improve the logging?
I changed the language constant to
'TRY_TO_LOGIN_FAIL' => '<strong>Failed login</strong><br />» Username: %s',
This is how a log message is added:
Code: Select all
$phpbb_log->add('user', ANONYMOUS, $user_ip, 'TRY_TO_LOGIN_FAIL', time(), array(
'reportee_id' => ANONYMOUS,
'username' => $username,
This also has the advantage that the username is searchable.
Another idea would be to link the log message to the actual user instead of ANONYMOUS, provided an existing username was entered.