Skip to content

Commit

Permalink
missed one token api response
Browse files Browse the repository at this point in the history
  • Loading branch information
causefx committed Sep 8, 2021
1 parent ba1ab32 commit 85b8e9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/classes/organizr.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,9 @@ public function validateToken($token, $api = false)
}
return false;
} else {
$this->setResponse(200, 'Token is valid');
if ($api) {
$this->setResponse(200, 'Token is valid');
}
return array(
"token" => $token,
"tokenDate" => $userInfo['tokenDate'],
Expand Down

0 comments on commit 85b8e9f

Please sign in to comment.