File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ Further in this article, you can find a
123123 .. configuration-block ::
124124
125125 .. code-block :: yaml
126-
126+
127127 # config/packages/test/security.yaml
128128 security :
129129 # ...
@@ -533,8 +533,10 @@ migration by returning ``true`` in the ``needsRehash()`` method::
533533 }
534534 }
535535
536- Named Password Hashers
537- ----------------------
536+ .. _named-password-hashers :
537+
538+ Dynamic Password Hashers
539+ ------------------------
538540
539541Usually, the same password hasher is used for all users by configuring it
540542to apply to all instances of a specific class. Another option is to use a
@@ -635,6 +637,12 @@ the name of the hasher to use::
635637 }
636638 }
637639
640+ .. caution ::
641+
642+ When :ref: `migrating passwords <security-password-migration >`, you don't
643+ need to implement ``PasswordHasherAwareInterface `` to return the legacy
644+ hasher name: Symfony will detect it from your ``migrate_from `` configuration.
645+
638646If you created your own password hasher implementing the
639647:class: `Symfony\\ Component\\ PasswordHasher\\ PasswordHasherInterface `,
640648you must register a service for it in order to use it as a named hasher:
You can’t perform that action at this time.
0 commit comments