Skip to content

Commit 0af9a84

Browse files
Update passwords.rst
1 parent 6841060 commit 0af9a84

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
@@ -626,7 +626,7 @@ you must register a service for it in order to use it as a named hasher:
626626
security:
627627
# ...
628628
password_hashers:
629-
app_hasher:
629+
App\Entity\User:
630630
id: 'App\Security\Hasher\MyCustomPasswordHasher'
631631
632632
.. code-block:: xml
@@ -842,7 +842,7 @@ Now, define a password hasher using the ``id`` setting:
842842
security:
843843
# ...
844844
password_hashers:
845-
app_hasher:
845+
App\Entity\User:
846846
# the service ID of your custom hasher (the FQCN using the default services.yaml)
847847
id: 'App\Security\Hasher\MyCustomPasswordHasher'
848848

0 commit comments

Comments
 (0)