From 5732cd59f36f5236b64c0dff853ef6d338924c19 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Dec 2019 15:26:34 +0800 Subject: [PATCH] update --- app/Http/Controllers/Passport/LoginController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Passport/LoginController.php b/app/Http/Controllers/Passport/LoginController.php index b785cecb..acb90fd0 100755 --- a/app/Http/Controllers/Passport/LoginController.php +++ b/app/Http/Controllers/Passport/LoginController.php @@ -46,9 +46,10 @@ class LoginController extends Controller $request->session()->put('is_admin', true); } } - $location = url('/#/' . $request->input('redirect') ? $request->input('redirect') : 'dashboard'); if (config('v2board.app_url')) { $location = config('v2board.app_url') . '/#/' . $request->input('redirect') ? $request->input('redirect') : 'dashboard'; + } else { + $location = url('/#/' . $request->input('redirect') ? $request->input('redirect') : 'dashboard'); } header('Location:' . $location); }