Skip to content

Commit f096458

Browse files
rpodwikajaviereguiluz
authored andcommitted
Update custom_password_authenticator.rst
In the example there's no encoder factory defined, only encoder itself.
1 parent cdfaff3 commit f096458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/custom_password_authenticator.rst

+1-1
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->encoderFactory->getEncoder($user)->isPasswordValid($user->getPassword(), $givenPassword, $user->getSalt())) {
72+
if (!$this->encoder->isPasswordValid($user->getPassword(), $givenPassword, $user->getSalt())) {
7373
throw new BadCredentialsException('The given password is invalid.');
7474
}
7575
}

0 commit comments

Comments
 (0)