aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-16 20:06:57 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-16 20:06:57 +0100
commit170a1407fea8b43a62854e115f90fd5cace44f01 (patch)
treefb5d59f1225a9a3418333088cc8314c5fe55b890
parentb68f0a81e54ce023d2779c0dd1f4c717ec94147a (diff)
parentc86b40f014848b2f9ccf4dfbead71694a41be569 (diff)
downloadwallabag-170a1407fea8b43a62854e115f90fd5cace44f01.tar.gz
wallabag-170a1407fea8b43a62854e115f90fd5cace44f01.tar.zst
wallabag-170a1407fea8b43a62854e115f90fd5cace44f01.zip
Merge pull request #690 from doc75/log_auth_error
Add message in web server log in case of authentication failure
-rwxr-xr-xinc/poche/Poche.class.php2
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 }