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 a29cb327..75766919 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -543,6 +543,8 @@ class Poche | |||
543 | Tools::redirect($referer); | 543 | Tools::redirect($referer); |
544 | } | 544 | } |
545 | $this->messages->add('e', _('login failed: bad login or password')); | 545 | $this->messages->add('e', _('login failed: bad login or password')); |
546 | // log login failure in web server log to allow fail2ban usage | ||
547 | error_log('user '.$login.' authentication failure'); | ||
546 | Tools::logm('login failed'); | 548 | Tools::logm('login failed'); |
547 | Tools::redirect(); | 549 | Tools::redirect(); |
548 | } | 550 | } |