auth: fix call to renamed method
This commit is contained in:
parent
e2c8a2fdea
commit
4dab137b51
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue