diff options
author | sgiehl <stefan@matomo.org> | 2022-08-04 16:09:13 +0300 |
---|---|---|
committer | sgiehl <stefan@matomo.org> | 2022-08-04 16:09:13 +0300 |
commit | 58ad4c048c77e614536ba1190fadd5cf106bdddc (patch) | |
tree | cce4bff8b356d238559694e2e1fc1a2d42874500 | |
parent | 49819504f869d825840324a8b0b9c865838348c6 (diff) |
Use brute force detection for reset password actionresetpwbf
-rw-r--r-- | plugins/Login/Controller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Login/Controller.php b/plugins/Login/Controller.php index 8434ff646c..c952368409 100644 --- a/plugins/Login/Controller.php +++ b/plugins/Login/Controller.php @@ -441,8 +441,9 @@ class Controller extends \Piwik\Plugin\ControllerAdmin try { $passwordHash = $this->passwordResetter->checkValidConfirmPasswordToken($login, $resetToken); } catch (Exception $ex) { - Log::debug($ex); + $this->bruteForceDetection->addFailedAttempt(IP::getIpFromHeader()); + Log::debug($ex); $errorMessage = $ex->getMessage(); } |