mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 05:36:54 +02:00
feat(endpoints): verify access token for Utils endpoints #565
This commit is contained in:
@@ -51,7 +51,7 @@ class Utils extends Endpoints
|
||||
$tokenData = tokens()->fetch($data['token']);
|
||||
|
||||
// Verify access token
|
||||
if (password_verify($tokenData['hashed_access_token'], $data['access_token'])) {
|
||||
if (! password_verify($data['access_token'], $tokenData['hashed_access_token'])) {
|
||||
return $this->getApiResponse($response, $this->getStatusCodeMessage(401), 401);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user