needsRehash always checks against PASSWORD_DEFAULT

Created on 17 January 2023, almost 2 years ago
Updated 23 May 2023, over 1 year ago

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

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada gapple

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024