diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-08-05 08:22:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 08:22:05 +0300 |
commit | c40b160f0f68546c1db0055f5ced49d286f74c7c (patch) | |
tree | affffc387d994346b519ff799192aadef9e57cd1 /plugins/Login | |
parent | a29cd62328b16d134b451a7364082155b9789bd5 (diff) |
Use brute force detection for reset password action (#19598)
Diffstat (limited to 'plugins/Login')
-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(); } |