]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Poche.class.php
add message in web server log in case of authentication failure to enable the usage...
[github/wallabag/wallabag.git] / 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();
         }