I just installed this, fresh out of the box the email that gets sent to the user has "[user:one-time-login-url]" where the actual token replacement should be. The "user account created by administrator" email that used to get sent before this module took over store emails did actually have the proper token replacement.
What do I need to do to get the out of the box module to work properly?
I'll post back here what I can find but I assume I'm not the only one to encounter this. Any guidance would be greatly appreciated.
thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 1864350.patch | 524 bytes | rsamsen |
Comments
Comment #1
tmsimont commentedThis is actually a pretty big deal -- it makes it impossible for new users to actually log into the website.
Comment #2
tmsimont commentedI've been testing a bit and confirm that none of the following tokens are converted to real values in this email:
Comment #3
ransomweaver commentedI had previously worked around this by using php in the email at admin/commerce/config/email like so:
However this stopped working for some reason so my new workaround is this:
Edit the rule supplied by commerce_email here: /admin/config/workflow/rules/reaction/manage/commerce_email_new_account
In the loop at the end, add a new action (system:send email)
for To: use [user:mail]
for message just copy what is in admin/commerce/config/email for the account email.
delete the "send variable email" from the loop.
edit the account email in admin/commerce/config/email to say something like DUE TO A BUG THIS EMAIL IS NOT USED. and say how to find the rule that needs editing.
NOTE: you need to check that rules can resolve the one-time-login token. check in the tokens list in the email action to see that its there. If its not, you probably have to put this patch into rules:
http://drupal.org/files/1289898-rules-restricted-user-tokens.patch
which is super easy to do by hand.
I'm not sure if that's necessary. I just haven't tested without it.
Comment #4
michiellucas commentedSame problem, nobody working on this issue?
Pretty big issue because it is destroying the anonymous users
Comment #5
tmsimont commented#3 works for me, but it would be nice to see this fixed for this module so those steps aren't necessary
Comment #6
zengenuity commentedJust want to confirm that the steps in #3 worked for me, too.
Comment #7
daniel wentsch commentedSeems to be an issue with Variable Email: #1430694: [user:one-time-login-url] is not available on config page, so new user cannot log in
Edit: now with correct issue link
Comment #8
xurizaemonSee #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.
Comment #9
joey-santiago commentedMy workaround has been:
Comment #10
dtamajon commentedI think solution should be on Token module, where the token is declared:
This is not the only token not replaced, so Tokens module should be reviewed to add those replacements.
Comment #11
Damn-Deal-Done commented#10 solved this problem for me.
Comment #12
rsamsen commentedI've created a patch based on #10, as this also solves my problem.
Bear with me, my first patch in the community. So I'm not sure what to do next ;)