From 4dab137b5140f0c583866c085561f3d8e8135882 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Thu, 14 Jan 2021 10:36:05 -0700 Subject: [PATCH] auth: fix call to renamed method --- app/Http/Controllers/Auth/AbstractLoginController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Auth/AbstractLoginController.php b/app/Http/Controllers/Auth/AbstractLoginController.php index b24a1a62a..d12ec1fd6 100644 --- a/app/Http/Controllers/Auth/AbstractLoginController.php +++ b/app/Http/Controllers/Auth/AbstractLoginController.php @@ -102,11 +102,11 @@ abstract class AbstractLoginController extends Controller $this->auth->guard()->login($user, true); - return JsonResponse::create([ + return new JsonResponse([ 'data' => [ 'complete' => true, 'intended' => $this->redirectPath(), - 'user' => $user->toVueObject(), + 'user' => $user->toReactObject(), ], ]); }