Skip to content

Commit fecc535

Browse files
committed
minor #16085 [Security] Fix method for the user password hasher service (samnela)
This PR was merged into the 5.3 branch. Discussion ---------- [Security] Fix method for the user password hasher service <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 4b6e7d2 Fix method for the user password hasher service
2 parents 2591f16 + 4b6e7d2 commit fecc535

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)