From: Nicolas LÅ“uillet Date: Fri, 16 Jan 2015 19:06:57 +0000 (+0100) Subject: Merge pull request #690 from doc75/log_auth_error X-Git-Tag: 1.9beta~34 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=170a1407fea8b43a62854e115f90fd5cace44f01;hp=b68f0a81e54ce023d2779c0dd1f4c717ec94147a;p=github%2Fwallabag%2Fwallabag.git Merge pull request #690 from doc75/log_auth_error Add message in web server log in case of authentication failure --- 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 Tools::redirect($referer); } $this->messages->add('e', _('login failed: bad login or password')); + // log login failure in web server log to allow fail2ban usage + error_log('user '.$login.' authentication failure'); Tools::logm('login failed'); Tools::redirect(); }