Registration Verification Email Template

On this page

FusionAuth sends this email when a user registers for an Application that requires registration verification. Assign the template in Verification template on the Application's Registration tab.

Default Template#

FusionAuth ships the following default template:

[#if registration.verified]
Pro tip, your registration has already been verified, but feel free to complete the verification process to verify your verification of your registration.
[/#if]

[#-- When a one-time code is provided, you will want the user to enter this value interactively using a form. In this workflow the verificationId
     is not shown to the user and instead the one-time code must be paired with the verificationId which is usually in a hidden form field. When the two
     values are presented together, the registration can be verified --]
[#if verificationOneTimeCode??]
<p>To complete your registration verification enter this code into the registration verification form.</p>
<p> ${verificationOneTimeCode} </p>
[#else]
To complete your registration verification click on the following link.
<p>
  [#assign url = "${baseUrl}/registration/verify/${verificationId}?client_id=${(application.oauthConfiguration.clientId)!''}&tenantId=${user.tenantId}" /]
  <a href="${url?html}">
    ${url?html}
  </a>
</p>
[/#if]

- FusionAuth Admin
[#if registration.verified]
Pro tip, your registration has already been verified, but feel free to complete the verification process to verify your verification of your registration.
[/#if]

[#-- When a one-time code is provided, you will want the user to enter this value interactively using a form. In this workflow the verificationId
     is not shown to the user and instead the one-time code must be paired with the verificationId which is usually in a hidden form field. When the two
     values are presented together, the registration can be verified --]
[#if verificationOneTimeCode??]
To complete your registration verification enter this code into the registration verification form.

${verificationOneTimeCode}
[#else]
To complete your registration verification click on the following link.

${baseUrl}/registration/verify/${verificationId}?client_id=${(application.oauthConfiguration.clientId)!''}&tenantId=${user.tenantId}
[/#if]

- FusionAuth Admin

Replacement Variables#

application
  • Type: Application
  • Available since 1.21.0

The Application object. For field definitions, see the Application API.

baseUrl
  • Type: String
  • Available since 1.68.0

The base URL for links in the email. FusionAuth uses the Application baseURL, then the Tenant baseURL, then http://localhost:9011.

registration
  • Type: Object

The User Registration object. For field definitions, see the Registration API.

tenant
  • Type: Tenant
  • Available since 1.18.2

The Tenant object. For field definitions, see the Tenant API.

user
  • Type: User

The User object for the recipient. For field definitions, see the User API.

verificationId
  • Type: String

The verification Id for the Verify a User Registration API.

verificationOneTimeCode
  • Type: String

The one-time code for the gated registration workflow. The user enters the code to verify the registration.