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>2021-05-11 19:54:27 +0300
committerGitHub <noreply@github.com>2021-05-11 19:54:27 +0300
commit7ded63245744b599782465fa26b576d8315367ed (patch)
tree14a958f84e3df7e0fdf293897a01af3eedbbe025 /plugins/TwoFactorAuth
parentb58ed3d4516f2c8214b547032d1cd7fac3088646 (diff)
Ensure login is set for brute force log when 2fa code is invalid (#17545)
Diffstat (limited to 'plugins/TwoFactorAuth')
-rw-r--r--plugins/TwoFactorAuth/Controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TwoFactorAuth/Controller.php b/plugins/TwoFactorAuth/Controller.php
index 6d24b9f9c2..5c7b451e1f 100644
--- a/plugins/TwoFactorAuth/Controller.php
+++ b/plugins/TwoFactorAuth/Controller.php
@@ -96,7 +96,7 @@ class Controller extends \Piwik\Plugin\Controller
try {
$bruteForce = StaticContainer::get('Piwik\Plugins\Login\Security\BruteForceDetection');
if ($bruteForce->isEnabled()) {
- $bruteForce->addFailedAttempt(IP::getIpFromHeader());
+ $bruteForce->addFailedAttempt(IP::getIpFromHeader(), Piwik::getCurrentUserLogin());
}
} catch (Exception $e) {
// ignore error eg if login plugin is disabled