Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[Form] Document thehash_property_path option#15872
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
abb2003 to839808fComparehash_mapping optionhash_property_path optionUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
d8ae8e7 to5950427Compare…e` (Seb33300)This PR was merged into the 6.2 branch.Discussion----------[Form] Add `hash_property_path` option to `PasswordType`| Q | A| ------------- | ---| Branch? | 6.2| Bug fix? | no| New feature? | yes| Deprecations? | no| Tickets |Fix#29066| License | MIT| Doc PR |symfony/symfony-docs#15872Same as#42883 but using a Form Extension and rebased to 6.1 & tests.This PR adds a new `hash_mapping` option to `PasswordType`.The `hash_mapping` option can be set with a property path where we want to set the hashed password.The `hash_mapping` option can only be used on unmapped fields to minimize plain password leak.Commits-------7065dfe [Form] Add hash_mapping option to PasswordType
Seb33300 commentedOct 23, 2022
This feature is now merged in 6.2 🎉 @javiereguiluz can we merge this PR? |
5950427 to228d73eComparewouterj commentedOct 23, 2022
Yes we can! Thanks for providing both feature and docs,@Seb33300! fyi, I've slightly updated the PR while merging (move the versionadded and add some more links). |
maxhelias commentedNov 30, 2022
I think, we should also explain how to configure it on a |
Seb33300 commentedNov 30, 2022
If you want to create a PR to add it to the documentation: $builder->add('plainPassword', RepeatedType::class, ['type' => PasswordType::class,'first_options' => ['label' =>'Password','hash_property_path' =>'password'],'second_options' => ['label' =>'Repeat Password'],'mapped' =>false,]); |
Uh oh!
There was an error while loading.Please reload this page.
Documentation forsymfony/symfony#46224