1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 07:06:45 +02:00

feat(endpoints): use helper function tokenHashValidate for API Validation

This commit is contained in:
Awilum
2021-08-21 17:06:36 +03:00
parent 21578e974a
commit 173def33f6

View File

@@ -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);
}
}