From 1116c7ef2842c1fcb5e53adee464f8a8eac526fa Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Wed, 14 Oct 2020 16:21:20 +0800 Subject: [PATCH] fix: token2login not working --- app/Http/Controllers/Passport/AuthController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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')) {