Fixed problems with session in pandora mobile verison. Tiquet: #3656

(cherry picked from commit decb820659e6888ac0d4b32129ee167ea5639f75)
This commit is contained in:
m-lopez-f 2016-06-01 12:54:00 +02:00
parent 650b42966f
commit 463f96f123

View File

@ -45,14 +45,13 @@ class User {
if ($this->logged) { if ($this->logged) {
$system = System::getInstance(); $system = System::getInstance();
$system->setSession('user', $this);
//hack to compatibility with pandora
global $config;
$config['id_user'] = $this->user;
if (!$this->needDoubleAuth) {
//hack to compatibility with pandora
global $config;
$config['id_user'] = $this->user;
}
$system->setSessionBase('id_usuario', $this->user); $system->setSessionBase('id_usuario', $this->user);
$system->setSession('user', $this);
} }
} }