Skip to content

Commit 9741258

Browse files
authored
Merge pull request #186 from pjsde/remove_unused_property
2 parents cb7e0c0 + 86ef1ac commit 9741258

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/Auth.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class Auth
3131
*/
3232
protected ?string $alias = null;
3333

34-
protected ?User $user = null;
3534
protected ?UserModel $userProvider = null;
3635

3736
public function __construct(Authentication $authenticate)
@@ -86,15 +85,9 @@ public function id()
8685

8786
public function authenticate(array $credentials): Result
8887
{
89-
$response = $this->authenticate
88+
return $this->authenticate
9089
->factory($this->alias)
9190
->attempt($credentials);
92-
93-
if ($response->isOk()) {
94-
$this->user = $response->extraInfo();
95-
}
96-
97-
return $response;
9891
}
9992

10093
/**

0 commit comments

Comments
 (0)