Verified Commit 2a42a117 authored by Mehdi Baaboura's avatar Mehdi Baaboura
Browse files

Fixed token not being serialized properly

parent d25b5c11
......@@ -98,7 +98,7 @@ class TokenController extends APIController {
return $this->apiService->json([
"status" => "Token valid",
"user" => $this->apiService->serialize($user),
"token" => $token
"token" => $this->apiService->serialize($token)
]);
} else {
return $this->error("Token expired", Response::HTTP_FORBIDDEN);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment