Skip to content

Commit 17999cf

Browse files
Roberto Lombiwouterj
Roberto Lombi
authored andcommitted
Wrong parameters order and wrong naming
Wrong parameters order and wrong naming on "Using Password Encoders" section
1 parent e58e39f commit 17999cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/security/authentication.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ which should be used to encode this user's password::
249249
// check if the password is valid:
250250

251251
$validPassword = $encoder->isPasswordValid(
252+
$encodedPassword,
252253
$user->getPassword(),
253-
$password,
254254
$user->getSalt());
255255

256256
.. _`CVE-2013-5750`: http://symfony.com/blog/cve-2013-5750-security-issue-in-fosuserbundle-login-form

0 commit comments

Comments
 (0)