File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Symfony/Component/Security/Http/Authenticator Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 21
21
use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
22
22
use Symfony \Component \Security \Core \Authentication \Token \UsernamePasswordToken ;
23
23
use Symfony \Component \Security \Core \Exception \AuthenticationException ;
24
- use Symfony \Component \Security \Core \Exception \BadCredentialsException ;
25
24
use Symfony \Component \Security \Core \User \PasswordUpgraderInterface ;
26
25
use Symfony \Component \Security \Core \User \UserProviderInterface ;
27
26
use Symfony \Component \Security \Http \Authentication \AuthenticationFailureHandlerInterface ;
@@ -85,8 +84,10 @@ public function authenticate(Request $request): Passport
85
84
throw $ e ;
86
85
}
87
86
87
+ $ userBadge = new UserBadge ($ credentials ['username ' ], $ this ->userProvider ->loadUserByIdentifier (...));
88
+
88
89
$ passport = new Passport (
89
- new UserBadge ( $ credentials [ ' username ' ], $ this -> userProvider -> loadUserByIdentifier (...)) ,
90
+ $ userBadge ,
90
91
new PasswordCredentials ($ credentials ['password ' ])
91
92
);
92
93
if ($ this ->userProvider instanceof PasswordUpgraderInterface) {
You can’t perform that action at this time.
0 commit comments