Skip to content

[PasswordHasher] Update example of usage CustomPasswordHasher #21181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 7.3
Choose a base branch
from

Conversation

andreybolonin
Copy link
Contributor

https://stackoverflow.com/questions/75624381/hash-passwords-in-md5-with-symfony-6-2

Only with this example I understand how to use custom password hashers, symfony docs is not very simple

@@ -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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd need to also update the XML and PHP examples.

And, at the end of this section we have this, that should also be updated:

This creates a hasher named app_hasher from a service [...]

@javiereguiluz javiereguiluz assigned wouterj and unassigned wouterj Jul 7, 2025
@javiereguiluz javiereguiluz requested a review from wouterj July 7, 2025 06:35
@OskarStark OskarStark changed the title [PasswordHasher] Update example of usage CustomPasswordHasher [PasswordHasher] Update example of usage CustomPasswordHasher Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants