mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 19:11:07 +00:00
add message in web server log in case of authentication failure to enable the usage of fail2ban on failed login attempts
This commit is contained in:
parent
8ae45e7fe2
commit
c86b40f014
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue