From cc0b6edb341af8c17cab29d6c5545ceb208182fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Mon, 16 Sep 2024 22:57:04 +0200 Subject: [PATCH] =?UTF-8?q?13.4.00.test3=20la=20cl=C3=A9=20auth=20n'a=20pa?= =?UTF-8?q?s=20=C3=A9t=C3=A9=20d=C3=A9clar=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/core.php b/core/core.php index 8afbb1b4..7e5b9785 100644 --- a/core/core.php +++ b/core/core.php @@ -51,7 +51,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '13.4.00.test2'; + const ZWII_VERSION = '13.4.00.test3'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/cms-update/raw/branch/master/'; @@ -1028,11 +1028,14 @@ class common } - /** + /** * @return bool l'utilisateur est connecté true sinon false */ public function isConnected() { - return ($this->getUser('authKey') === $this->getInput('ZWII_AUTH_KEY')); + return ( + !empty($this->getUser('authKey')) + && + $this->getUser('authKey') === $this->getInput('ZWII_AUTH_KEY')); } /**