Skip to content

Commit e6e0e61

Browse files
zupolgectaylorotwell
authored andcommitted
Fixing check on "remember" parameter presence (#21221)
When a "remember" parameter is passed and it's empty, the user should not be remembered.
1 parent 230bb3a commit e6e0e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Auth/AuthenticatesUsers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function validateLogin(Request $request)
7474
protected function attemptLogin(Request $request)
7575
{
7676
return $this->guard()->attempt(
77-
$this->credentials($request), $request->has('remember')
77+
$this->credentials($request), $request->filled('remember')
7878
);
7979
}
8080

0 commit comments

Comments
 (0)