From 01f836108d643018025a14777c97d32a733a7434 Mon Sep 17 00:00:00 2001 From: osaajani <> Date: Tue, 15 Apr 2025 14:53:04 +0200 Subject: [PATCH] Fix tokenistA DEPRECATED + fix webhook success --- VERSION | 2 +- controllers/internals/Webhook.php | 1 + controllers/publics/Connect.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index d446e59..6282b70 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v3.9.2 +v3.9.3 diff --git a/controllers/internals/Webhook.php b/controllers/internals/Webhook.php index fc9cd24..9ea723f 100644 --- a/controllers/internals/Webhook.php +++ b/controllers/internals/Webhook.php @@ -115,6 +115,7 @@ class Webhook extends StandardController return false; } + $success = false; $webhooks = $this->gets_for_type_and_user($id_user, $type); foreach ($webhooks as $webhook) { diff --git a/controllers/publics/Connect.php b/controllers/publics/Connect.php index d254b97..c97d6f2 100644 --- a/controllers/publics/Connect.php +++ b/controllers/publics/Connect.php @@ -139,7 +139,7 @@ namespace controllers\publics; $Tokenista = new \Ingenerator\Tokenista(APP_SECRET); - if (!$Tokenista->isValid($token, ['id_user' => $id_user])) + if (!$Tokenista->validate($token, ['id_user' => $id_user])) { return $this->render('connect/reset-password-invalid'); }