Problem/Motivation
The Password Policy module expects either a login via a one-time login link—setting the user_pass_reset form state variable—or that the user provides both the current and a new password. Currently, the Simple Password Reset flow does neither of these.
Reference:
https://git.drupalcode.org/project/password_policy/-/blob/4.0.x/password...
Steps to reproduce
- Set up a password expiration policy using Password Policy.
- Use Simple Password Reset to change a user's password.
- Observe that the password expiration date is not updated.
Proposed resolution
Set the user_pass_reset form state variable during the Simple Password Reset process. This allows Password Policy to recognize the reset context and update the expiration date accordingly during validation.
Reference for user_pass_reset:
https://git.drupalcode.org/project/drupal/-/blob/10.4.x/core/modules/use...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | pass-reset-value-3519278.patch | 1.06 KB | willempje2 |
Issue fork simple_pass_reset-3519278
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 #2
willempje2 commentedComment #3
willempje2 commentedComment #5
astonvictor commentedComment #8
astonvictor commented