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