Skip to content

[Security] [DOC] Update passwords.rst #19396

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
Jan 17, 2024
Merged

Conversation

lbbyf
Copy link
Contributor

@lbbyf lbbyf commented Jan 8, 2024

The signature of the needsRehash method of the SymfonyComponentPasswordHasher\Hasher\UserPasswordHasherInterface interface is public function needsRehash(PasswordAuthenticatedUserInterface $user): bool;.

If we use the method public function needsRehash(string $hashedPassword): bool;, then the interface should be Symfony\Component\PasswordHasher\PasswordHasherInterface.

@carsonbot carsonbot changed the title [DOC][SECURITY] Update passwords.rst [Security] [DOC] Update passwords.rst Jan 8, 2024
@OskarStark OskarStark requested a review from wouterj January 9, 2024 13:46
@javiereguiluz javiereguiluz added this to the 6.3 milestone Jan 17, 2024
@javiereguiluz javiereguiluz changed the base branch from 7.0 to 6.3 January 17, 2024 10:05
The signature of the needsRehash method of the `SymfonyComponentPasswordHasher\Hasher\UserPasswordHasherInterface` interface is `public function needsRehash(PasswordAuthenticatedUserInterface $user): bool;`.

If we use the method `public function needsRehash(string $hashedPassword): bool;`, then the interface should be `Symfony\Component\PasswordHasher\PasswordHasherInterface`.
@javiereguiluz
Copy link
Member

I'm merging this because it looks correct to me. If we want to use the other interface, then we'll update the code to use the proper method arguments.

Thanks Franklin!

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.

3 participants