diff options
author | BeezyT <timo@ezdesign.de> | 2012-10-17 09:12:17 +0400 |
---|---|---|
committer | BeezyT <timo@ezdesign.de> | 2012-10-17 09:12:17 +0400 |
commit | bc5ff08cebcb49210b77095a08c121cd39a920ef (patch) | |
tree | b9f298e809d408579b79e5524d18aa249c046ef8 /plugins/Login | |
parent | 400e5bf353197b74762c13fdb94922db3a890f14 (diff) |
refs #2465: Starting the Insight plugin (in-site analytics)
This is the code I wrote about a year ago :)
There are several things that will be changed / removed but it's still good to have it in SVN - that's why I commit it like this.
git-svn-id: http://dev.piwik.org/svn/trunk@7223 59fd770c-687e-43c8-a1e3-f5a4ff64c105
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; } |