Skip to content

Commit

Permalink
update setUser in WebGuard
Browse files Browse the repository at this point in the history
  • Loading branch information
Satya Kresna committed Oct 4, 2022
1 parent 084992c commit ebce6ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Auth/Guard/WebGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,12 @@ public function authenticate()
$provider = new WebUserProvider((new \ReflectionClass('RistekUSDI\SSO\PHP\Models\User'))->getName());
$user = $provider->retrieveByCredentials($user);
$this->setUser($user);

return true;
}

public function setUser(Authenticatable $user)
{
$this->user = $user;
return $this;
}

public function permissions()
Expand Down

0 comments on commit ebce6ee

Please sign in to comment.