diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2018-12-04 07:18:04 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-12-04 07:18:04 +0300 |
commit | 28c41eb93b42672076fc9cc8f4ff39d244eb31a4 (patch) | |
tree | 86bff1cc3187b3f7d84c9abb3701d4c7f4f39795 /plugins | |
parent | 4da5b745e5f835edaf636170c6791bde5ca58c08 (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')
-rw-r--r-- | plugins/TwoFactorAuth/TwoFactorAuth.php | 4 |
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; } |