From 173def33f6f6d7476ffa3bc39d620e96c6612b20 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 21 Aug 2021 17:06:36 +0300 Subject: [PATCH] feat(endpoints): use helper function `tokenHashValidate` for API Validation --- src/flextype/core/Endpoints/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flextype/core/Endpoints/Api.php b/src/flextype/core/Endpoints/Api.php index 35ae39db..e0acc710 100644 --- a/src/flextype/core/Endpoints/Api.php +++ b/src/flextype/core/Endpoints/Api.php @@ -126,7 +126,7 @@ class Api return $this->getStatusCodeMessage(401); } - if (! password_verify($data['access_token'], $tokenData['hashed_access_token'])) { + if (! tokenHashValidate($data['access_token'], $tokenData['hashed_access_token'])) { return $this->getStatusCodeMessage(401); } }