diff --git a/security/passwords.rst b/security/passwords.rst index 7f05bc3acb9..5578b9f3c00 100644 --- a/security/passwords.rst +++ b/security/passwords.rst @@ -626,7 +626,7 @@ you must register a service for it in order to use it as a named hasher: security: # ... password_hashers: - app_hasher: + App\Entity\User: id: 'App\Security\Hasher\MyCustomPasswordHasher' .. code-block:: xml @@ -842,7 +842,7 @@ Now, define a password hasher using the ``id`` setting: security: # ... password_hashers: - app_hasher: + App\Entity\User: # the service ID of your custom hasher (the FQCN using the default services.yaml) id: 'App\Security\Hasher\MyCustomPasswordHasher'