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:
authorStefan Giehl <stefan@matomo.org>2022-08-05 08:22:05 +0300
committerGitHub <noreply@github.com>2022-08-05 08:22:05 +0300
commitc40b160f0f68546c1db0055f5ced49d286f74c7c (patch)
treeaffffc387d994346b519ff799192aadef9e57cd1 /plugins/Login
parenta29cd62328b16d134b451a7364082155b9789bd5 (diff)
Use brute force detection for reset password action (#19598)
Diffstat (limited to 'plugins/Login')
-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();
}