Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@matomo.org>2022-08-04 16:09:13 +0300
committersgiehl <stefan@matomo.org>2022-08-04 16:09:13 +0300
commit58ad4c048c77e614536ba1190fadd5cf106bdddc (patch)
treecce4bff8b356d238559694e2e1fc1a2d42874500
parent49819504f869d825840324a8b0b9c865838348c6 (diff)
Use brute force detection for reset password actionresetpwbf
-rw-r--r--plugins/Login/Controller.php3
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();
}