Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I had a rule set up to redirect users to a particular page when they log in - Event: 'User has logged in', Action: 'System>Page Redirect'.
Unfortunately this messes up Drupal's one-time login feature, which appends a reset code to the login link in the email to ensure that the 'Current Password' field on the user account form is hidden/not required. I tried adding a condition "NOT path has alias [account:one-time-login-url]", but that didn't work.
This is also a bug in Triggers/Actions as far as I can tell.
Perhaps the 'User has logged in' event could automatically exclude one-time logins?
Comments
Comment #1
TR CreditAttribution: TR commentedUse the 'Text comparison' condition to see if the current path contains 'reset' - if it does, then it's a one-time login URL.
Path alias doesn't work because this is not an alias.