mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
fix style
This commit is contained in:
parent
296fbd61e8
commit
3b662c1153
24 changed files with 57 additions and 58 deletions
|
@ -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' => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue