-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Form] Add hash_property_path option to PasswordType
#46224
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
Conversation
2724b72 to
785c113
Compare
a8304ce to
a8c9dbb
Compare
|
Hey! I think @michaelKaefer has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
88e4fd2 to
1f7b15f
Compare
yceruto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This approach seems better than the previous one. Thanks for the second try!
...Symfony/Component/Form/Extension/PasswordHasher/Type/PasswordTypePasswordHasherExtension.php
Show resolved
Hide resolved
src/Symfony/Component/Form/Extension/PasswordHasher/EventListener/PasswordHasherListener.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Extension/PasswordHasher/Type/FormTypePasswordHasherExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Extension/PasswordHasher/EventListener/PasswordHasherListener.php
Outdated
Show resolved
Hide resolved
ef8b110 to
ffe9830
Compare
...Symfony/Component/Form/Extension/PasswordHasher/Type/PasswordTypePasswordHasherExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Extension/PasswordHasher/EventListener/PasswordHasherListener.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Extension/PasswordHasher/EventListener/PasswordHasherListener.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Extension/PasswordHasher/PasswordHasherExtension.php
Outdated
Show resolved
Hide resolved
5afae70 to
533142b
Compare
src/Symfony/Component/Form/Extension/PasswordHasher/EventListener/PasswordHasherListener.php
Show resolved
Hide resolved
yceruto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
src/Symfony/Component/Form/Extension/PasswordHasher/EventListener/PasswordHasherListener.php
Outdated
Show resolved
Hide resolved
|
Some tests failures seem to be related https://github.com/symfony/symfony/actions/runs/3274200868/jobs/5387417225#step:7:2208 can you check? |
|
Fixed in e765a9b All green now 🚀 |
src/Symfony/Component/Form/Extension/PasswordHasher/EventListener/PasswordHasherListener.php
Outdated
Show resolved
Hide resolved
...mponent/Form/Tests/Extension/PasswordHasher/Type/PasswordTypePasswordHasherExtensionTest.php
Outdated
Show resolved
Hide resolved
88f6c8b to
9c06ab2
Compare
9c06ab2 to
56c1282
Compare
56c1282 to
7065dfe
Compare
|
@chalasr I force pushed to change |
|
Thank you @Seb33300. |
…300) This PR was squashed before being merged into the 6.2 branch. Discussion ---------- [Form] Document the `hash_property_path` option Documentation for symfony/symfony#46224 Commits ------- 228d73e [Form] Document the `hash_property_path` option
Same as #42883 but using a Form Extension and rebased to 6.1 & tests.
This PR adds a new
hash_mappingoption toPasswordType.The
hash_mappingoption can be set with a property path where we want to set the hashed password.The
hash_mappingoption can only be used on unmapped fields to minimize plain password leak.