We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb7e0c0 + 86ef1ac commit 9741258Copy full SHA for 9741258
1 file changed
src/Auth.php
@@ -31,7 +31,6 @@ class Auth
31
*/
32
protected ?string $alias = null;
33
34
- protected ?User $user = null;
35
protected ?UserModel $userProvider = null;
36
37
public function __construct(Authentication $authenticate)
@@ -86,15 +85,9 @@ public function id()
86
85
87
public function authenticate(array $credentials): Result
88
{
89
- $response = $this->authenticate
+ return $this->authenticate
90
->factory($this->alias)
91
->attempt($credentials);
92
-
93
- if ($response->isOk()) {
94
- $this->user = $response->extraInfo();
95
- }
96
97
- return $response;
98
}
99
100
/**
0 commit comments