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'); }