Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Form] FixPasswordHasherListener to work with empty data#49208

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

Merged
fabpot merged 1 commit intosymfony:6.2from1ed:fix-form-password-hasher
Feb 4, 2023

Conversation

@1ed
Copy link
Contributor

@1ed1ed commentedFeb 2, 2023
edited
Loading

QA
Branch?6.2
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

This fixes the case when a new user is created by the form,
for example in a registration form. Before this the listener
thrown an exception, because when it tried to get the user
it was not available yet. With this the user resolved later
at the root form when empty data already ran. Other then that
the logic is the same just refactored a code a bit to make it
more readable.

@1ed1edforce-pushed thefix-form-password-hasher branch from791d794 to6494370CompareFebruary 2, 2023 20:49
@OskarStarkOskarStark changed the title[Form] Fix PasswordHasherListener to work with empty data[Form] FixPasswordHasherListener to work with empty dataFeb 3, 2023
@fabpot
Copy link
Member

Thank you@1ed.

@fabpotfabpot merged commitad14daf intosymfony:6.2Feb 4, 2023
@1ed1ed deleted the fix-form-password-hasher branchFebruary 4, 2023 09:13
$this->assertSame($user->getPassword(),$hashedPassword);
}

publicfunctiontestPasswordHashSuccessWitnEmptyData()
Copy link
Contributor

Choose a reason for hiding this comment

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

testPasswordHashSuccessWitnEmptyData

should be:

testPasswordHashSuccessWithEmptyData

Copy link
Member

Choose a reason for hiding this comment

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

good catch, but it's already fixed in the6.2 branch :) (seed88d5b3)

alexislefebvre reacted with thumbs up emojialexislefebvre reacted with rocket emoji
@fabpotfabpot mentioned this pull requestFeb 28, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@stofstofstof approved these changes

@ycerutoycerutoyceruto approved these changes

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

+1 more reviewer

@alexislefebvrealexislefebvrealexislefebvre left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.2

Development

Successfully merging this pull request may close these issues.

7 participants

@1ed@fabpot@stof@xabbuh@yceruto@alexislefebvre@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp