8000 Fix wrong usage in custom authenticator checking if password is invalid · symfony/symfony-docs@94f2951 · GitHub
[go: up one dir, main page]

Skip to content

Commit 94f2951

Browse files
committed
Fix wrong usage in custom authenticator checking if password is invalid
1 parent e13ef43 commit 94f2951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/custom_password_authenticator.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ the user::
6969
if ('' === ($givenPassword = $token->getCredentials())) {
7070
throw new BadCredentialsException('The given password cannot be empty.');
7171
}
72-
if (!$this->encoder->isPasswordValid($user->getPassword(), $givenPassword, $user->getSalt())) {
72+
if (!$this->encoder->isPasswordValid($user, $givenPassword)) {
7373
throw new BadCredentialsException('The given password is invalid.');
7474
}
7575
}

0 commit comments

Comments
 (0)
0