diff --git a/core/core.php b/core/core.php index 4a98bdd2..e5167c9d 100644 --- a/core/core.php +++ b/core/core.php @@ -2402,7 +2402,7 @@ class core extends common { $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') AND ( $this->getUser('group') === self::GROUP_BANNED OR ( $_SESSION['csrf'] !== $this->getData(['user',$this->getUser('id'),'accessCsrf']) - AND $this->getData(['config','autoDisconnect']) === true) + AND $this->getData(['config','connect', 'autoDisconnect']) === true) ) ) { $user = new user; diff --git a/core/module/config/config.php b/core/module/config/config.php index 24dfb562..825ce311 100644 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -399,7 +399,7 @@ class config extends common { } // Eviter déconnexion automatique après son activation - if ( $this->getData(['config','autoDisconnect']) === false + if ( $this->getData(['config','connect', 'autoDisconnect']) === false AND $this->getInput('configAutoDisconnect',helper::FILTER_BOOLEAN) === true ) { $this->setData(['user',$this->getuser('id'),'accessCsrf',$_SESSION['csrf']]); } diff --git a/core/module/config/view/connect/connect.php b/core/module/config/view/connect/connect.php index b2339b0e..127fa142 100644 --- a/core/module/config/view/connect/connect.php +++ b/core/module/config/view/connect/connect.php @@ -17,7 +17,7 @@
$this->getData(['config','autoDisconnect']), + 'checked' => $this->getData(['config','connect', 'autoDisconnect']), 'help' => 'Déconnecte les sessions ouvertes précédemment sur d\'autres navigateurs ou terminaux. Activation recommandée.' ]); ?>