-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following a password reset link while authenticated should allow a password change without the current password. #6426
Comments
Note that the PR works if someone has stayed logged in, in one browser, and didn't log out/log in after requesting the login link. When the Drupal 7 patch was merged a few years ago it didn't check the |
Steps to test the PR:
Note that if it's a different user account, then it will still follow the old steps of showing a warning "You cannot use a password reset link while logged into the site." |
Tested and reviewed. LGTM |
Thanks @herbdool and @argiepiano! Merged into 1.x and 1.28.x. |
Backport of Issue #889772 by tuutti, stefan.r, opdavies, Sutharsan, Perignon, pjcdawkins, joachim, das-peter, YesCT, David_Rothstein, Zerdiox, hussainweb, Fabianx, mgifford, xjm: Following a password reset link while logged in leaves users unable to change their password.
Commit: https://git.drupalcode.org/project/drupal/-/commit/f7d2f47e9ed15ce7840ffafa105a0ea80a46eeca
Currently, if a user is logged in in one browser, requests a reset password in another browser when not logged in, and then follows that reset URL in the logged in browser, they will be required to enter their current password to change the password.
Instead it should follow the same as the regular workflow as an anonymous user. In order to do that the user should be logged out and then be presented with the reset password form.
The text was updated successfully, but these errors were encountered: