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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user