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

federico.parra’s picture

Hey! nobody will answer this?

1sp’s picture

federico, 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

ptmkenny’s picture

Status: Active » Postponed (maintainer needs more info)

Marking as postponed because no follow-up was ever posted.

peterlolty’s picture

It should be [site:current-user:validate-url]

dan_metille’s picture

Maybe, but [site:current-user:validate-url] don't work for me neither, getting en empty line in the message.

dan_metille’s picture

Status: Postponed (maintainer needs more info) » Active

Don'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:

  • Visitors can register, but administrator approval is required
  • Login: Allow users to login using their e-mail address
  • Registration: Set password / No immediate login

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

stomerfull’s picture

hello ,

i have the same issue

can anyone have any idea to fix it ?

federico’s picture

Issue summary: View changes

This is working for me:

<a href="/toboggan/revalidate/[site:current-user:uid]">

dooug’s picture

(meant to add a related issue, but didn't submit it).

dooug’s picture

dooug’s picture