mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-22 13:36:18 +00:00
Merge pull request #690 from doc75/log_auth_error
Add message in web server log in case of authentication failure
This commit is contained in:
commit
170a1407fe
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue