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

TR’s picture

Category: Bug report » Support request
Status: Active » Fixed
Issue tags: -one-time login, -replacement, -login, -redirect, -logged in

Use 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.

Status: Fixed » Closed (fixed)

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