Problem/Motivation

When a user login with one-time login token, then clicks around, this module redirects the user back to the profile page. However, because the one-time login token is not in the URL parameter anymore, the core AccountForm would require the user to type in the "Current password", which the user might not have. Therefore, the user cannot save the form, but request another one-time login token.

The UX is worse, when the site is configured to "Require email verification when a visitor creates an account", in which the user only sets the password after they login with one-time token. Therefore, if the redirect happens, the user cannot save the form without the current password.

Steps to reproduce

Proposed resolution

Check the user session, if there is pass_reset_USER_ID, then we redirect the user to the profile page with the one-time token.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3264632-2.patch1.22 KBskyredwang

Comments

skyredwang created an issue. See original summary.

skyredwang’s picture

Title: Support password UX » Support password reset UX
Status: Active » Needs review
StatusFileSize
new1.22 KB

The patch below is on top of #3259820: Support custom whitelist, so you probably will see automated build failing. Once that feature is committed, I can re-roll this patch

Status: Needs review » Needs work

The last submitted patch, 2: 3264632-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

cosolom’s picture

Status: Needs work » Fixed

Thank you, commited

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

joekers’s picture

The pass_reset_UID never seems to be in the session so this isn't working for me. Am I missing something, or maybe there was a change to core that removes it from the $_SESSION?

cosolom’s picture

Maybe it's core related. Which Drupal version do you use? You can create new issue for this

joekers’s picture