mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-27 17:28:39 +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);
|
Tools::redirect($referer);
|
||||||
}
|
}
|
||||||
$this->messages->add('e', _('login failed: bad login or password'));
|
$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::logm('login failed');
|
||||||
Tools::redirect();
|
Tools::redirect();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue