Hi. I'm using LoginToboggan with Rules, and created a rule that sends an email
to me once a new account is saved. The email contains several tokens (like [account:name]
and [account:mail] that work well (arrive to my email translated into the corresponding date).
However the token [account:validate-url] does not arrive well (it literally arrive as [account:validate-url].
I tried with [user:validate-url], [current-user:validate-url], [site:user:validate-url] and others, but no way of
making it work.
I then changed the rule to instead of sending an email, simply displaying a status message to the user
while in pre-auth mode; the message contained again several tokens including [account:validate-url] (and all
the variations of that). It does not work.
Why is this token no working in rules?
Thanks,
Federico
Comments
Comment #1
federico.parra commentedHey! nobody will answer this?
Comment #2
1sp commentedfederico, I would attempt to help you here. Can you please export out the rule and paste it here so that I may debug the case?
Also, please tell me about the user registration setting of your drupal setup.
Cheers,
Sudhir
Comment #3
ptmkenny commentedMarking as postponed because no follow-up was ever posted.
Comment #4
peterlolty commentedIt should be [site:current-user:validate-url]
Comment #5
dan_metille commentedMaybe, but [site:current-user:validate-url] don't work for me neither, getting en empty line in the message.
Comment #6
dan_metille commentedDon't know if we should open a new issue, but the basic problem is that neither [site:current-user:validate-url] nor [user:validate-url] is working with the original Rules setting.
From my understanding, this is the main reason why federico.parra try to modify his rules, but the issue is also in the original setting. And I have the same problem, but with a token ( [site:current-user:validate-url] or [user:validate-url] ) which is not rendered at all (white space) in the email.
Maybe it makes no sense to have the following settings, but nothing prevent it:
Can any one explain the logic? The only information I have found was from the following issue, pointing an error in logintoboggan_tokens(), and which somehow sounds like a duplicate to me: http://drupal.org/node/1764098#comment-6428320
Comment #7
stomerfull commentedhello ,
i have the same issue
can anyone have any idea to fix it ?
Comment #8
federico commentedThis is working for me:
<a href="/toboggan/revalidate/[site:current-user:uid]">Comment #9
dooug commented(meant to add a related issue, but didn't submit it).
Comment #10
dooug commentedComment #11
dooug commented