Skip to content

Commit b1f35b9

Browse files
committed
minor #15954 [Security] Update security.rst (abdounikarim)
This PR was merged into the 5.3 branch. Discussion ---------- [Security] Update security.rst Hello, I updated the docs to use the `hashPassword` method from the `Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface` class. Commits ------- f1c375c Update security.rst
2 parents be8ec3d + f1c375c commit b1f35b9

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)