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/Login/Login.php')
-rw-r--r--plugins/Login/Login.php9
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;
}