Skip to content

Commit

Permalink
Clear user instance on rebind request (laravel#22649)
Browse files Browse the repository at this point in the history
Because it could change the credentials
  • Loading branch information
abler98 authored and BenCavens committed Jan 5, 2018
1 parent 62400b2 commit 5ce64fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Auth/RequestGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public function validate(array $credentials = [])
*/
public function setRequest(Request $request)
{
$this->user = null;

$this->request = $request;

return $this;
Expand Down

0 comments on commit 5ce64fc

Please sign in to comment.