fnp
/
piwik-CASLogin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c96c21
)
Make sure Piwik session is started in Auth::authenticate
master
author
Radek Czajka
<radekczajka@nowoczesnapolska.org.pl>
Wed, 15 Oct 2014 12:30:24 +0000
(14:30 +0200)
committer
Radek Czajka
<radekczajka@nowoczesnapolska.org.pl>
Wed, 15 Oct 2014 12:30:24 +0000
(14:30 +0200)
Auth.php
patch
|
blob
|
history
diff --git
a/Auth.php
b/Auth.php
index
799d38a
..
de6453a
100644
(file)
--- 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';