Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | fix-one-time-login-redirect_2852881_1.patch | 810 bytes | stmh |
Comments
Comment #2
stmh CreditAttribution: stmh at Factorial GmbH commentedHere's the proposed fix as a patch.
Comment #3
cola CreditAttribution: cola commentedCan confirm patch #2 works fine
Comment #4
NikLP CreditAttribution: NikLP as a volunteer commentedPlease apply this to the dev or latest version.
Comment #5
ddrozdik CreditAttribution: ddrozdik as a volunteer and at FFW, Drupal Ukraine Community for FFW commentedComment #7
ddrozdik CreditAttribution: ddrozdik as a volunteer and at FFW, Drupal Ukraine Community for FFW commentedThank you. Committed to dev branch.