Skip to content

Commit f1c375c

Browse files
authored
Update security.rst
Hello, I updated the docs to use the `hashPassword` method from the `Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface` class.
1 parent be8ec3d commit f1c375c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ the database::
473473
$plaintextPassword = ...;
474474

475475
// hash the password (based on the security.yaml config for the $user class)
476-
$hashedPassword = $passwordHasher->hash(
476+
$hashedPassword = $passwordHasher->hashPassword(
477477
$user,
478478
$plaintextPassword
479479
);

0 commit comments

Comments
 (0)