- Issue created by @hockey2112
- Status changed to Closed: works as designed
about 1 year ago 1:26pm 20 April 2024 - πΊπΈUnited States zengenuity
Email tokens only appear in the context of an easy email entity. If you're viewing the token browser from another page, not the edit template page, then I would not expect easy email tokens to be available. There would be no email for them to refer to.
If you're having an issue on the email template edit page, then you can feel free to reopen this issue, but for now I'm going to close it.
- πΊπΈUnited States hockey2112
Sorry for the late reply to this. Re-opening because I am not seeing the token result in the email.
Here is the relevant portion of the email template:
A request to reset the password for your account has been made at [site:name]. <br><br> You may now log in by clicking this link or copying and pasting it into your browser: <br><br> [user:one-time-login-url] [current-user:one-time-login-url] <br><br> This link can only be used once to log in and will lead you to a page where you can set your password. It expires after one day and nothing will happen if it's not used.
And this is the output in the password reset email I receive:
A request to reset the password for your account has been made at My Website. You may now log in by clicking this link or copying and pasting it into your browser: This link can only be used once to log in and will lead you to a page where you can set your password. It expires after one day and nothing will happen if it's not used.
As you can see, "My Website" (the site:name) does appear in the email, but neither version of the user one-time login url appear in the email. How can I include that one-time login url?
- π«π·France jibus
Same problem here.
If we use the override option for the recovery password mail, it won't work since we can't get the one time url login token.
- Status changed to Active
3 months ago 3:00pm 8 February 2025 - πΊπΈUnited States zengenuity
Current user is not the correct entity to use for a recovery password email. When you set up the override you had to map the account parameter to a field on the email entity. (If you didn't do that, that's the problem.) Normally, I would map the account parameter to the Recipient field. In that case, the token for the password reset URL will be:
[easy_email:recipient_uid:0:entity:one-time-login-url]
- π¬π§United Kingdom darren.fisher
Just a heads up I didn't see it either until I cleared the cache!