Skip to content

Commit 7219065

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Fix method for the user password hasher service
2 parents 49e19c5 + 2e32449 commit 7219065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/passwords.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ After configuring the correct algorithm, you can use the
219219
$plaintextPassword = ...;
220220
221221
// hash the password (based on the security.yaml config for the $user class)
222-
$hashedPassword = $passwordHasher->hash(
222+
$hashedPassword = $passwordHasher->hashPassword(
223223
$user,
224224
$plaintextPassword
225225
);
@@ -249,7 +249,7 @@ After configuring the correct algorithm, you can use the
249249
$plaintextPassword = ...;
250250
251251
// hash the password (based on the password hasher factory config for the $user class)
252-
$hashedPassword = $passwordHasher->hash(
252+
$hashedPassword = $passwordHasher->hashPassword(
253253
$user,
254254
$plaintextPassword
255255
);

0 commit comments

Comments
 (0)