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:
authorThomas Steur <tsteur@users.noreply.github.com>2018-12-04 07:18:04 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-12-04 07:18:04 +0300
commit28c41eb93b42672076fc9cc8f4ff39d244eb31a4 (patch)
tree86bff1cc3187b3f7d84c9abb3701d4c7f4f39795 /plugins/TwoFactorAuth
parent4da5b745e5f835edaf636170c6791bde5ca58c08 (diff)
Do not ask for 2fa authentication code when CoreUpdater is being requested (#13796)
Could fix an edge case where user is logged in, but hasn't confirmed the auth code (so the user is not actually logged in), and then an update appears.
Diffstat (limited to 'plugins/TwoFactorAuth')
-rw-r--r--plugins/TwoFactorAuth/TwoFactorAuth.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/TwoFactorAuth/TwoFactorAuth.php b/plugins/TwoFactorAuth/TwoFactorAuth.php
index 3c8118005e..e83599b8cd 100644
--- a/plugins/TwoFactorAuth/TwoFactorAuth.php
+++ b/plugins/TwoFactorAuth/TwoFactorAuth.php
@@ -150,6 +150,10 @@ class TwoFactorAuth extends \Piwik\Plugin
return;
}
+ if ($module === 'CoreUpdater') {
+ return;
+ }
+
if ($module === Piwik::getLoginPluginName() && $action === 'logout') {
return;
}