Ivan - Add verification token return data for backend [skip ci]

This commit is contained in:
Ivan Diaz 2017-01-10 13:19:36 -03:00
parent ae946a7397
commit a113d547d2
3 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,7 @@ class GetUsersController extends Controller {
$userListArray[] = [
'id' => $user->id,
'name' => $user->name,
'verified' => !$user->verificationToken,
'tickets' => $user->tickets,
'email' => $user->email,
'signupDate' => $user->signupDate

View File

@ -29,6 +29,7 @@ class GetUserController extends Controller {
Response::respondSuccess([
'name' => $user->name,
'email' => $user->email,
'verified' => !$user->verificationToken,
'tickets' => $parsedTicketList
]);
}

View File

@ -34,7 +34,8 @@ class User extends DataStore {
return [
'email' => $this->email,
'id' => $this->id,
'name' => $this->name
'name' => $this->name,
'verified' => !$this->verificationToken
];
}
}