Browse Source

Respect remember me setting.

Taylor Otwell 10 years ago
parent
commit
da9dd7d389
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Http/Controllers/AuthController.php

+ 3 - 1
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');
 		}