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')
-rw-r--r--plugins/Login/Login.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Login/Login.php b/plugins/Login/Login.php
index 0f39785d71..d2a2e5f230 100644
--- a/plugins/Login/Login.php
+++ b/plugins/Login/Login.php
@@ -132,6 +132,7 @@ class Piwik_Login extends Piwik_Plugin
$cookie = new Piwik_Cookie($authCookieName, $authCookieExpiry, $authCookiePath);
$cookie->set('login', $login);
$cookie->set('token_auth', $auth->getHashTokenAuth($login, $authResult->getTokenAuth()));
+ $cookie->setSecure(Piwik::isHttps());
$cookie->save();
Zend_Session::regenerateId();