From da9dd7d3894647258d2b02e98f18f10d6a2ae8b8 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 24 Nov 2014 12:21:06 -0600 Subject: [PATCH] Respect remember me setting. --- app/Http/Controllers/AuthController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index cabb1ca7..441b0cf0 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -75,7 +75,9 @@ class AuthController extends Controller { */ public function postLogin(LoginRequest $request) { - if ($this->auth->attempt($request->only('email', 'password'))) + $credentials = $request->only('email', 'password'); + + if ($this->auth->attempt($credentials, $request->has('remember'))) { return redirect('/dashboard'); }