Level up your skills at DrupalCon Chicago 2026 with focused Summits and immersive, hands-on Trainings led by community experts.
Problem/Motivation
When checking if the password needs to be rehashed, PASSWORD_DEFAULT is provided as a parameter instead of the configured algorithm. If an alternate algorithm is configured, the password will always be rehashed even though not necessary.
Steps to reproduce
override the password.php service's arguments to provide a different algorithm (e.g. PASSWORD_ARGON2I
Proposed resolution
Update the value sent to password_rehash()
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork php_password-3334308
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
gappleComment #4
gappleComment #6
neclimdulThanks!