We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
findForPassport
1 parent abfaf30 commit aee8af1Copy full SHA for aee8af1
src/Bridge/UserRepository.php
@@ -34,13 +34,13 @@ public function getUserEntityByUserCredentials(
34
}
35
36
if (method_exists($model, 'findAndValidateForPassport')) {
37
- $user = (new $model)->findAndValidateForPassport($username, $password);
+ $user = (new $model)->findAndValidateForPassport($username, $password, $clientEntity);
38
39
return $user ? new User($user->getAuthIdentifier()) : null;
40
41
42
$user = method_exists($model, 'findForPassport')
43
- ? (new $model)->findForPassport($username)
+ ? (new $model)->findForPassport($username, $clientEntity)
44
: (new $model)->where('email', $username)->first();
45
46
if (! $user) {
0 commit comments