mirror of
https://github.com/v2board/v2board.git
synced 2025-01-10 16:19:10 +08:00
fix: token2login not working
This commit is contained in:
parent
eecb01c24e
commit
1116c7ef28
@ -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')) {
|
||||
|
Loading…
Reference in New Issue
Block a user