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:
Diffstat (limited to 'plugins/TwoFactorAuth/Controller.php')
-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