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 @@ -134,7 +134,7 @@ Further in this article, you can find a
134
134
.. configuration-block ::
135
135
136
136
.. code-block :: yaml
137
-
137
+
138
138
# config/packages/test/security.yaml
139
139
security :
140
140
# ...
@@ -544,8 +544,10 @@ migration by returning ``true`` in the ``needsRehash()`` method::
544
544
}
545
545
}
546
546
547
- Named Password Hashers
548
- ----------------------
547
+ .. _named-password-hashers :
548
+
549
+ Dynamic Password Hashers
550
+ ------------------------
549
551
550
552
Usually, the same password hasher is used for all users by configuring it
551
553
to apply to all instances of a specific class. Another option is to use a
@@ -646,6 +648,12 @@ the name of the hasher to use::
646
648
}
647
649
}
648
650
651
+ .. caution ::
652
+
653
+ When :ref: `migrating passwords <security-password-migration >`, you don't need to implement ``PasswordHasherAwareInterface ``
654
+ to return the legacy hasher name:
655
+ Symfony will detect it from your ``migrate_from `` configuration.
656
+
649
657
If you created your own password hasher implementing the
650
658
:class: `Symfony\\ Component\\ PasswordHasher\\ PasswordHasherInterface `,
651
659
you 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