- Status changed to RTBC
about 2 years ago 2:07pm 30 April 2023 - Status changed to Needs review
about 2 years ago 4:45pm 22 May 2023 - 🇮🇳India Supreetam09 Kolkata
#3 only partially fixes the issue.
I am using latest version available for both Password Separate Form(2.0.0) and Password Policy(4.0.0) module.
The latest changes introduced in Password Policy module brings in lot more changes than #3 patch. We should replicate the exact same behaviour as Password Policy module does here. Check out the entire changes from this line in Password Policy module.Adding patch for the same.
- 🇺🇸United States fskreuz
#8 also works for me (Password Separate Form 2.0.0, Password Policy 4.0.1)
- 🇬🇧United Kingdom littlepixiez
#8 works to resolve the issue for us.
Password Separate Form Version: 2.0.0
Password Policy Version: 4.0.3Thanks!!
- 🇭🇺Hungary fox mulder
#8 works great
core: 10.4.6
change_pwd_page: 2.0.0
password_policy: 4.0.3
PHP 8.1.32 - First commit to issue fork.
- Merge request !20Updated change_pwd_page due to changes in password_policy module. → (Open) created by shivam_tiwari
- 🇮🇳India shivam_tiwari
I created MR 20 for the latest development branch. Need to close old MR 4. Please review MR 20 so we can get these changes on the project repo.
- 🇪🇸Spain evamtinez
Hi,
I've seen that MR 20 already addresses the missing submit handler issue, but after applying it, I've noticed it doesn't actually store the values of Password Policy module fields (field_last_password_reset, field_password_expiration and field_pending_expire_sent) in the user entity upon submission.
To resolve this, I've created a patch that explicitly assigns these field values from $form_state to the user entity within the submit handler, ensuring these fields are properly saved.
The attached patch fully resolves the described issue. Please feel free to suggest or apply any improvements or adjustments as needed.
For additional context, these are the versions of Drupal core and both modules:
- Drupal core: 10.4.6
- Password Policy module: 4.0.3
- Change Pwd Page module: 2.0.0