Hi,

When i enable the Commece Email module the token [user:one-time-login-url] is not replaced in the "account was created" e-mail...If i check the log file i see the following messages:

1. Unable to evaluate action data_set.
2. Unable to modify data "commerce-order:commerce-customer-shipping:uid": Unable to set the data property uid as the parent data structure is not set.

Don't know if it has anything to do with the problem...

Any clue?

Henk

Comments

theRuslan’s picture

The same issue with replacing [user:one-time-login-url]. No such token in the list at all.

lanceaeby’s picture

Same issue here, the [user:one-time-login-url] token is not replaced with the correct link like it should.

I have a temporary workaround (it's not perfect though). If you enable "PHP code" as a text format, you can insert the code below to create the password reset link. This will create a link that takes the user to a page that says their link has "expired", and they are asked to fill in their email address to request another password reset email, which then allows them to set up their new password. Not ideal I know, but it's all I've been able to come up with at the moment.

<a href=<?php print user_pass_reset_url($account); ?>"><?php print user_pass_reset_url($account); ?></a>

xurizaemon’s picture

Status: Active » Closed (duplicate)

See #1430694: [user:one-time-login-url] is not available on config page, so new user cannot log in. Note that the fix in that issue requires uncommenting a couple of lines.