fix style

This commit is contained in:
osaajani 2021-02-23 00:31:54 +01:00
parent 296fbd61e8
commit 3b662c1153
24 changed files with 57 additions and 58 deletions

View file

@ -126,10 +126,10 @@ class Webhook extends StandardController
{
$timestamp = time();
$webhook_random_id = $timestamp . '-' . bin2hex(openssl_random_pseudo_bytes(16));
//signature is hexa string representing hmac sha256 of webhook_random_id
$webhook_signature = hash_hmac(self::HMAC_ALGO, $webhook_random_id, $user['api_key']);
$message = [
'url' => $webhook['url'],
'data' => [