You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs confused `UserPasswordHasherInterface` with `PasswordHasherInterface`.
Implementing a custom `UserPasswordHasherInterface` most likely is not what the developer wants to do.
The subsequent docs configured the example at places where a `PasswordHasherInterface` is expected.
Copy file name to clipboardExpand all lines: security/passwords.rst
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -781,12 +781,12 @@ Creating a custom Password Hasher
781
781
782
782
If you need to create your own, it needs to follow these rules:
783
783
784
-
#. The class must implement :class:`Symfony\\Component\\PasswordHasher\\Hasher\\UserPasswordHasherInterface`
785
-
(you can also extend:class:`Symfony\\Component\\PasswordHasher\\Hasher\\UserPasswordHasher`);
784
+
#. The class must implement :class:`Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherInterface`
785
+
(you can also implement:class:`Symfony\\Component\\PasswordHasher\\Hasher\\LegacyPasswordHasherInterface` if your hash algorithm uses a separate salt);
0 commit comments