diff --git a/pandora_console/mobile/include/user.class.php b/pandora_console/mobile/include/user.class.php index ec65f18f48..7c11bf4828 100644 --- a/pandora_console/mobile/include/user.class.php +++ b/pandora_console/mobile/include/user.class.php @@ -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); } }