Skip to content
  • There are no suggestions because the search field is empty.

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

  1. Edit the template — add fields from the reference below, then select Save Template.
  2. Request a reset — on your web portal, sign out and choose the forgot password option with a test email address you can open.
  3. Check the email — confirm each field shows a value and the reset link or code works.

Reference

User fields

Field

Description

user.email

Email address of the account being reset

user.first_name

First name

user.last_name

Last name

Portal fields

Field

Description

portal.name

Portal name

portal.slug

Portal identifier

portal.domain

Portal web domain

Reset fields

Field

Description

token

Unique reset token used to build the reset link

token_type

reset for a reset link, or otp for a one-time passcode

otp

The one-time passcode. Only sent when token_type is otp

state

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}}