mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fixed problems with session in pandora mobile verison. Tiquet: #3656
(cherry picked from commit decb820659e6888ac0d4b32129ee167ea5639f75)
This commit is contained in:
parent
650b42966f
commit
463f96f123
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user