diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index b9e21fcba4..b8a9303acd 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -159,15 +159,9 @@ class LoginController extends Controller $this->clearLoginAttempts($request); } } - - // 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 - return redirect()->to($redirect)->with('success', trans('auth/message.signin.success')); + return redirect()->intended()->with('success', trans('auth/message.signin.success')); }