File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -494,15 +494,15 @@ The following credential classes are supported by default:
494
494
use Symfony\Component\Security\Http\Authenticator\Passport\Credentials\PasswordCredentials;
495
495
496
496
// ...
497
- return new Passport($user , new PasswordCredentials($plaintextPassword));
497
+ return new Passport(new UserBadge($email) , new PasswordCredentials($plaintextPassword));
498
498
499
499
:class: `Symfony\\ Component\\ Security\\ Http\\ Authenticator\\ Passport\\ Credentials\\ CustomCredentials `
500
500
Allows a custom closure to check credentials::
501
501
502
502
use Symfony\Component\Security\Http\Authenticator\Passport\Credentials\CustomCredentials;
503
503
504
504
// ...
505
- return new Passport($user , new CustomCredentials(
505
+ return new Passport(new UserBadge($email) , new CustomCredentials(
506
506
// If this function returns anything else than `true`, the credentials
507
507
// are marked as invalid.
508
508
// The $credentials parameter is equal to the next argument of this class
@@ -581,7 +581,7 @@ would initialize the passport like this::
581
581
// ... validate no parameter is empty
582
582
583
583
return new Passport(
584
- new UserBadge($user ),
584
+ new UserBadge($email ),
585
585
new PasswordCredentials($password),
586
586
[new CsrfTokenBadge('login', $csrfToken)]
587
587
);
You can’t perform that action at this time.
0 commit comments