Problem/Motivation
change_pwd_page_form_alter() hides the password fields of the password reset form.
The password reset form is actually the user_edit form with a specific form state.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | 27.patch | 2.68 KB | mkalkbrenner |
| #10 | alter-route-path-3372510-10.patch | 591 bytes | cobenash |
| #9 | Screenshot 2024-07-23 at 18.39.01.png | 96.65 KB | c_archer |
| #6 | Screenshot 2023-07-13 at 6.58.23 PM.png | 119.36 KB | keshavv |
| #3 | reset-pwd-login-link-issue.patch | 1.91 KB | deepesh151086 |
Issue fork change_pwd_page-3372510
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
mkalkbrennerComment #3
deepesh151086 commentedHi @mkalkbrenner , this will break with password policy module. Attaching a new patch which resoves the problem.
Comment #6
keshavv commentedPatch #3 Failed to apply because there are some latest changes in the file.
I have removed the Change Password tab when the user resets the password.
The issue is also fixed. Please review the MR and merge.
Thank you.
Comment #7
thomasmurphy commentedI tried the forked version from #6 but it didn't fix the issue for me. This wasn't a clean install, though, it's part of an existing application which may complicate things. It's still worth someone testing with only core and this modules and its dependencies.
The patch from #1 applied to 2.0.0 but also didn't solve the issue.
Comment #8
keshavv commentedWhen the user redirects to the Change password page from the email's One-time reset link.
On that page, Fields were missing to reset passwords, Because this module will create a separate tab to update the password.
When a user clicks on Update password tab, The URL changed and the token for resetting the password is removed from url. So the user is not able to reset the password.
In the given MR I have moved the update password fields to the One-time login, edit profile page, So that the user can update the password on the same page, and it works for me.
Please review.
Comment #9
c_archer commentedTested the MR and it does add the password fields to the user edit page. Would it not be better to redirect the user to the user/change-password page?
Comment #10
cobenashHey folks,
I have the same issue, and I checked the code on the module. I think the problem occurred because the path on the alter routes doesn't trigger the route
change_pwd_page.resetsuccessfully.Therefore, I modified the path, which seems to work as expected.
Comment #11
jibus commentedpatch #10 works for me.
User gets redirect to the separate password when resetting its password.
Comment #12
fox mulder commented#10 works for us
core: 10.4.6
change_pwd_page: 2.0.0
PHP 8.1.32
Comment #17
c_archer commentedLatest changes want apply
Comment #18
mkalkbrennerWe faced the same issue with the patch yesterday. Take a look at the patch file. If it contains unrelated stuff, you ran into the same gitlab issue. I think it is caused by the fact that 2.0.x and 2.x is involved which seems to confuse gitlabs patch output.
Checking out the branch and creating the patch locally works.
Comment #19
bluegeek9 commented