forked from Alex/Pterodactyl-Panel
auth: fix call to renamed method
This commit is contained in:
parent
e2c8a2fdea
commit
4dab137b51
@ -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 New Issue
Block a user