diff options
Diffstat (limited to 'plugins/Login')
-rw-r--r-- | plugins/Login/Login.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/Login/Login.php b/plugins/Login/Login.php index 0925045fda..0e7051c379 100644 --- a/plugins/Login/Login.php +++ b/plugins/Login/Login.php @@ -76,10 +76,13 @@ class Piwik_Login extends Piwik_Plugin { $auth = new Piwik_Login_Auth(); Zend_Registry::set('auth', $auth); - + + $allowCookieAuthentication = $notification->getNotificationInfo(); + $action = Piwik::getAction(); - if(Piwik::getModule() === 'API' - && (empty($action) || $action == 'index')) + if (Piwik::getModule() === 'API' + && (empty($action) || $action == 'index') + && $allowCookieAuthentication !== true) { return; } |