Forgot Password Context Output
This article lists every field the Password Reset email template can use, including the fields for the one-time passcode reset.
The Password Reset email has its own small context with the user, the portal and the reset details. Unlike order and cart emails, this data can't be viewed for a real request. This article covers where to edit the template, how to check your changes step by step, and a reference for every field.
Where to find it
Global Settings → Email Templates, then choose Password Reset from the template dropdown.
Required access: Portal Admin.
Check a Password Reset template
- Edit the template — add fields from the reference below, then select Save Template.
- Request a reset — on your web portal, sign out and choose the forgot password option with a test email address you can open.
- Check the email — confirm each field shows a value and the reset link or code works.
Reference
User fields
|
Field |
Description |
|---|---|
|
|
Email address of the account being reset |
|
|
First name |
|
|
Last name |
Portal fields
|
Field |
Description |
|---|---|
|
|
Portal name |
|
|
Portal identifier |
|
|
Portal web domain |
Reset fields
|
Field |
Description |
|---|---|
|
|
Unique reset token used to build the reset link |
|
|
|
|
|
The one-time passcode. Only sent when |
|
|
The state of the reset request |
Best practices
-
Support both reset types. Use
{{#if otp}}to show the passcode, and{{else}}to show the reset link. -
Don't edit the reset link format. A broken link locks customers out. Test every change with a real reset request.
-
Greet by first name with a fallback.
{{#if user.first_name}}Hi {{user.first_name}},{{else}}Hi,{{/if}}