diff options
Diffstat (limited to 'inc')
-rwxr-xr-x | inc/poche/Poche.class.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 6a742019..8b0d3a19 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -576,6 +576,8 @@ class Poche | |||
576 | Tools::redirect($referer); | 576 | Tools::redirect($referer); |
577 | } | 577 | } |
578 | $this->messages->add('e', _('login failed: bad login or password')); | 578 | $this->messages->add('e', _('login failed: bad login or password')); |
579 | // log login failure in web server log to allow fail2ban usage | ||
580 | error_log('user '.$login.' authentication failure'); | ||
579 | Tools::logm('login failed'); | 581 | Tools::logm('login failed'); |
580 | Tools::redirect(); | 582 | Tools::redirect(); |
581 | } | 583 | } |