X-Git-Url: https://git.mdrn.pl/piwik-CASLogin.git/blobdiff_plain/9c96c21771c9f389d6e727242faeb0e9e74ae2a4..HEAD:/Auth.php?ds=inline diff --git a/Auth.php b/Auth.php index 799d38a..de6453a 100644 --- a/Auth.php +++ b/Auth.php @@ -18,6 +18,7 @@ use Piwik\Config; use Piwik\Db; use Piwik\Piwik; use Piwik\Plugins\UsersManager\API; +use Piwik\Session; /** * Class that implements an authentication mechanism via CAS (Central Authentication Services) @@ -39,6 +40,9 @@ class Auth implements \Piwik\Auth public function authenticate() { + // Make sure Piwik session is started. + Session::start(); + $user = ''; require_once PIWIK_INCLUDE_PATH . '/plugins/CASLogin/CAS/CAS.php';