Skip to content

Commit 4b6e7d2

Browse files
authored
Fix method for the user password hasher service
1 parent 08889fb commit 4b6e7d2

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
@@ -230,7 +230,7 @@ After configuring the correct algorithm, you can use the
230230
$plaintextPassword = ...;
231231
232232
// hash the password (based on the security.yaml config for the $user class)
233-
$hashedPassword = $passwordHasher->hash(
233+
$hashedPassword = $passwordHasher->hashPassword(
234234
$user,
235235
$plaintextPassword
236236
);
@@ -260,7 +260,7 @@ After configuring the correct algorithm, you can use the
260260
$plaintextPassword = ...;
261261
262262
// hash the password (based on the password hasher factory config for the $user class)
263-
$hashedPassword = $passwordHasher->hash(
263+
$hashedPassword = $passwordHasher->hashPassword(
264264
$user,
265265
$plaintextPassword
266266
);

0 commit comments

Comments
 (0)