diff --git a/app/Http/Controllers/Passport/AuthController.php b/app/Http/Controllers/Passport/AuthController.php index 8d6607f2..62a0d5f4 100644 --- a/app/Http/Controllers/Passport/AuthController.php +++ b/app/Http/Controllers/Passport/AuthController.php @@ -144,7 +144,6 @@ class AuthController extends Controller ]); } - // 准备废弃 public function token2Login(Request $request) { if ($request->input('token')) { @@ -154,7 +153,7 @@ class AuthController extends Controller } else { $location = url($redirect); } - return header('Location:' . $location); + return redirect()->to($location)->send(); } if ($request->input('verify')) {