]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
add message in web server log in case of authentication failure to enable the usage... 690/head
authorGuillaume Virlet <github@virlet.org>
Wed, 14 May 2014 13:45:52 +0000 (15:45 +0200)
committerGuillaume Virlet <gvt@3ds.com>
Mon, 5 Jan 2015 09:21:04 +0000 (10:21 +0100)
inc/poche/Poche.class.php

index a29cb327c18d6d27c48f84b2f05b9195ee7ab892..757669194872acca7c70025adf214cb4a83e1fdc 100755 (executable)
@@ -543,6 +543,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();
         }