Skip to content

[make:user] Use password_hashers instead of encoders #889

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

Merged
merged 1 commit into from
Jun 25, 2021

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented May 22, 2021

And also improve the position of this config when "enable_authenticator_manager" is the first option.

@jrushlow can you maybe help with the blank line (see failing tests)? I tried some things (including adding a '_' => $this->manipulator->createEmptyLine()) but all resulted in major failures. Thanks!

@wouterj wouterj force-pushed the password-hasher branch from cfb34c4 to 68abd28 Compare May 22, 2021 18:20
@wouterj wouterj force-pushed the password-hasher branch 2 times, most recently from 7f94323 to 76bcefa Compare June 22, 2021 12:13
And also improve the position of this config when "enable_authenticator_manager" is the first option.
@wouterj
Copy link
Member Author

wouterj commented Jun 22, 2021

There are all sorts of failures in the tests that I can't explain with my changes - I hope they aren't related.

Apart from that, this one should (finally) be ready.

@jrushlow jrushlow changed the title [5.3][make:user] Use password_hashers instead of encoders [make:user] Use password_hashers instead of encoders Jun 24, 2021
Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

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

Thanks @wouterj!

@@ -72,6 +74,10 @@ public function updateForAuthenticator(string $yamlSource, string $firewallName,
$newData = $this->manipulator->getData();

if (!isset($newData['security']['firewalls'])) {
if ($newData['security']) {
$newData['security']['_firewalls'] = $this->manipulator->createEmptyLine();
}
Copy link
Member

@weaverryan weaverryan Jun 25, 2021

Choose a reason for hiding this comment

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

What is this for? Are we suddenly missing an empty line somewhere?

Nevermind - I see that we're now handling some more complex cases than before with placement, etc

@weaverryan
Copy link
Member

This is quite thorough and complex - thank you Wouter!

@weaverryan weaverryan merged commit dabfffe into symfony:main Jun 25, 2021
@wouterj wouterj deleted the password-hasher branch June 26, 2021 09:24
@jrushlow jrushlow mentioned this pull request Jun 30, 2021
weaverryan added a commit that referenced this pull request Jul 1, 2021
This PR was merged into the 1.0-dev branch.

Discussion
----------

[release] v1.33.0

Hi Makers!

Insert clever words here

## [v1.33.0](https://github.com/symfony/maker-bundle/releases/tag/v1.33.0)

*June 30th, 2021*

### Feature

- [#895](#895) - [make:crud] send the proper HTTP status codes and use renderForm() when available - *`@dunglas`*
- [#889](#889) - [make:user] Use password_hashers instead of encoders - *`@wouterj`*

### Bug Fix

- [#913](#913) - [make:registration] conditionally generate verify email flash in template - *`@jrushlow`*
- [#881](#881) - [make:entity] Fix error when API-Platform is installed. - *`@MichaelBrauner`*

Diff: v1.32.0...v1.33.0

Happy making!

Commits
-------

aa1b721 [release] v1.33.0
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