Respect remember me setting.

This commit is contained in:
Taylor Otwell 2014-11-24 12:21:06 -06:00
parent 769f2486ef
commit da9dd7d389
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ public function getLogin()
*/
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');
}