1
0
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:
Awilum
2021-08-10 14:22:24 +03:00
parent 9a0cfe37fb
commit bf6da62d46

View File

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