Respect remember me setting.
This commit is contained in:
parent
769f2486ef
commit
da9dd7d389
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue