Fixed #2303 - redirect correctly after login

This commit is contained in:
snipe 2017-01-12 07:09:44 -08:00
parent b7a650e986
commit d9d048f90d

View file

@ -160,14 +160,8 @@ class LoginController extends Controller
} }
} }
// Get the page we were before
$redirect = \Session::get('loginRedirect', 'home');
// Unset the page we were before from the session
\Session::forget('loginRedirect');
// Redirect to the users page // Redirect to the users page
return redirect()->to($redirect)->with('success', trans('auth/message.signin.success')); return redirect()->intended()->with('success', trans('auth/message.signin.success'));
} }