Ivan - Add verification token return data for backend [skip ci]
This commit is contained in:
parent
ae946a7397
commit
a113d547d2
|
@ -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
|
||||
|
|
|
@ -29,6 +29,7 @@ class GetUserController extends Controller {
|
|||
Response::respondSuccess([
|
||||
'name' => $user->name,
|
||||
'email' => $user->email,
|
||||
'verified' => !$user->verificationToken,
|
||||
'tickets' => $parsedTicketList
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -34,7 +34,8 @@ class User extends DataStore {
|
|||
return [
|
||||
'email' => $this->email,
|
||||
'id' => $this->id,
|
||||
'name' => $this->name
|
||||
'name' => $this->name,
|
||||
'verified' => !$this->verificationToken
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue