When the user resets its password, the one-time-login-redirect does not get called, instead the login-redirect gets executed.

After debugging this for a while I found the reason, the current code checks a session-variable, which get sets after hook_user_login gets fired. I replaced the offending code by testing the current route which works on my end.

See attached patch

CommentFileSizeAuthor
#2 fix-one-time-login-redirect_2852881_1.patch810 bytesstmh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stmh created an issue. See original summary.

stmh’s picture

Here's the proposed fix as a patch.

cola’s picture

Can confirm patch #2 works fine

NikLP’s picture

Priority: Normal » Major
Status: Needs review » Reviewed & tested by the community

Please apply this to the dev or latest version.

ddrozdik’s picture

Assigned: Unassigned » ddrozdik

  • ddrozdik committed 36014d5 on 8.x-1.x authored by stmh
    Issue #2852881 by stmh: One-time-logins do not get redirected
    
ddrozdik’s picture

Assigned: ddrozdik » Unassigned
Status: Reviewed & tested by the community » Fixed

Thank you. Committed to dev branch.

Status: Fixed » Closed (fixed)

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