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
123
123
.. configuration-block ::
124
124
125
125
.. code-block :: yaml
126
-
126
+
127
127
# config/packages/test/security.yaml
128
128
security :
129
129
# ...
@@ -533,8 +533,10 @@ migration by returning ``true`` in the ``needsRehash()`` method::
533
533
}
534
534
}
535
535
536
- Named Password Hashers
537
- ----------------------
536
+ .. _named-password-hashers :
537
+
538
+ Dynamic Password Hashers
539
+ ------------------------
538
540
539
541
Usually, the same password hasher is used for all users by configuring it
540
542
to 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::
635
637
}
636
638
}
637
639
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
+
638
646
If you created your own password hasher implementing the
639
647
:class: `Symfony\\ Component\\ PasswordHasher\\ PasswordHasherInterface `,
640
648
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