mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed problems with session in pandora mobile verison. Tiquet: #3656
This commit is contained in:
parent
bce76b5505
commit
decb820659
@ -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