fix: token2login not working

This commit is contained in:
Tokumeikoi 2020-10-14 16:21:20 +08:00
parent eecb01c24e
commit 1116c7ef28

View File

@ -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')) {