Fixed problems with session in pandora mobile verison. Tiquet: #3656
(cherry picked from commit decb820659
)
This commit is contained in:
parent
650b42966f
commit
463f96f123
|
@ -45,14 +45,13 @@ class User {
|
|||
|
||||
if ($this->logged) {
|
||||
$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->setSession('user', $this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue