This commit is contained in:
Pig Fang 2019-12-31 22:39:33 +08:00
parent 1829f1dab5
commit 8703495f8f

View File

@ -33,7 +33,12 @@ class UserController extends Controller
public function user()
{
return json('', 0, auth()->user()->makeHidden(['password', 'ip', 'remember_token'])->toArray());
$user = auth()
->user()
->makeHidden(['password', 'ip', 'remember_token', 'verification_token'])
->toArray();
return json('', 0, $user);
}
public function index(Filter $filter)