I am trying to send out an email using a drupal onetime login. I have created a custom token which executes the following php.
return user_pass_reset_url($user);
I then use this in my rule. A link is sent to the user but when they click on the link it says it has all ready been used. I have no idea why because the link in the email looks correct (contains correct user id etc).