-
-
Notifications
You must be signed in to change notification settings - Fork 421
use password hasher for make:registration & make:reset-password, includes other improvements #923
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
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.
I like the aim for SURE - but I'm not convinced on the details yet :)
src/Resources/skeleton/registration/RegistrationController.tpl.php
Outdated
Show resolved
Hide resolved
src/Resources/skeleton/registration/RegistrationController.tpl.php
Outdated
Show resolved
Hide resolved
5ee7fc0
to
d2b85d5
Compare
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.
Looks awesome! It's a much smaller/smoother update now. Just a small note about the legacy version
src/Maker/MakeRegistrationForm.php
Outdated
@@ -276,14 +274,24 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen | |||
'Controller\\' | |||
); | |||
|
|||
/* | |||
* @legacy Conditional can be removed when MakerBundle no longer | |||
* supports Symfony < 6.0 |
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.
Couldn't we drop this once MakerBundle no longer supports 5.2? The thinking is: UserPasswordHasherInterface
is new in 5.3. If an app is using 5.3, then we will ALWAYS give them the new class. So once MakerBundle requires 5.3 or higher, we can drop this. That's much sooner than 6.0 :)
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.
agreed - i was thinking when the old interface is removed, not when the new one was added.. lets do it!
c43f6bf
to
daa3b45
Compare
Thanks Jesse! |
This PR was merged into the 1.0-dev branch. Discussion ---------- [release] prep 1.34.0 # Release Hi Makers! This release contains a few new features, fixes, and improvements under the hood! Most notably, this release introduces PHP Attribute support for `make:entity` including entities using API Platform, support for the new Symfony Password Hasher in `make:reset-password`, & `make:registration`, and implements stronger return types where possible. Diff: v1.33.0...v1.34.0 Happy making! # Changelog ## [v1.34.0](https://github.com/symfony/maker-bundle/releases/tag/v1.34.0) *September 27th, 2021* ### Feature - [#978](#978) - Adding Entity attribute support - *`@simonmarx`*, *`@geekimo`*, *`@adlpz`*, *`@weaverryan`*, *`@jrushlow`* - [#970](#970) - make PhpCompatUtil::getPhpVersion() public - *`@nikophil`* - [#968](#968) - [make:entity] APIP: use new attribute if exists - *`@nikophil`* - [#963](#963) - add return types for symfony 6 - *`@jrushlow`* - [#925](#925) - [templates] Add void return types - *`@seb`-jean* - [#923](#923) - use password hasher for make:registration & make:reset-password, includes other improvements - *`@jrushlow`* ### Bug Fix - [#974](#974) - Fix method call definition - *`@ajgarlag`* - [#973](#973) - Fix we we typo - *`@karser`* - [#933](#933) - [make:entity] Remove deprecated json_array type from available list types. - *`@bdaler`* - [#930](#930) - Add all missed dependencies to make:reset-password - *`@upyx`* - [#870](#870) - [make:crud] Fix templates path use in include - *`@leblanc`-simon* Commits ------- 2ba83b3 [release] prep 1.34.0
Use the new password hasher if it exists, or fallback to the old password encoder for
make:reset-password
&make:registration
.ClassNameDetails
objects inmake:registration
templates.TemplateComponentsGenerator::getPropertyType($classNameDetails)
object that simplifies using typed properties in templates.contains
@legacy
tags for internal use:Generator::getControllerBaseClass()
whenFrameworkBundle
min supported version >= 4.1$passwordHasher
conditional can be removed when min Symfony supported version >=5.3$passwordHasher
conditional can be removed when min Symfony supported version >=5.3password_variable_name
&use_password_hasher
can be removed when min Symfony supported version >=5.3refs #821