mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 00:46:27 +02:00
Fix tokenistA DEPRECATED + fix webhook success
This commit is contained in:
parent
580d9595b3
commit
01f836108d
3 changed files with 3 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
v3.9.2
|
v3.9.3
|
||||||
|
|
|
@ -115,6 +115,7 @@ class Webhook extends StandardController
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$success = false;
|
||||||
$webhooks = $this->gets_for_type_and_user($id_user, $type);
|
$webhooks = $this->gets_for_type_and_user($id_user, $type);
|
||||||
foreach ($webhooks as $webhook)
|
foreach ($webhooks as $webhook)
|
||||||
{
|
{
|
||||||
|
|
|
@ -139,7 +139,7 @@ namespace controllers\publics;
|
||||||
|
|
||||||
$Tokenista = new \Ingenerator\Tokenista(APP_SECRET);
|
$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');
|
return $this->render('connect/reset-password-invalid');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue