Debug
This commit is contained in:
@ -447,7 +447,6 @@ class Toku extends Ideal\Service
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($results as $secret) {
|
foreach ($results as $secret) {
|
||||||
if (HMAC::validate($timestamp, $signature, $eventId, $secret)) {
|
|
||||||
$this->logger->info('Toku webhook validated', [
|
$this->logger->info('Toku webhook validated', [
|
||||||
'timestamp' => $timestamp,
|
'timestamp' => $timestamp,
|
||||||
'signature' => $signature,
|
'signature' => $signature,
|
||||||
@ -455,6 +454,7 @@ class Toku extends Ideal\Service
|
|||||||
'eventType' => $eventType,
|
'eventType' => $eventType,
|
||||||
'secret' => $secret,
|
'secret' => $secret,
|
||||||
]);
|
]);
|
||||||
|
if (HMAC::validate($timestamp, $signature, $eventId, $secret)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user