From d91f22662701144c4aae9819ededd9177d44a54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Moch=C5=88ak?= Date: Thu, 8 Feb 2018 16:40:44 +0100 Subject: [PATCH] Update Authenticator.php --- src/SalesChamp/Webhooks/Authenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SalesChamp/Webhooks/Authenticator.php b/src/SalesChamp/Webhooks/Authenticator.php index 727bcc8..e2a1b5c 100644 --- a/src/SalesChamp/Webhooks/Authenticator.php +++ b/src/SalesChamp/Webhooks/Authenticator.php @@ -41,6 +41,6 @@ public function sign($body) */ public function verify($signature, $body) { - return $signature === $this->sign($body); + return hash_equals($this->sign($body), $signature); } }