Set Up Password Message Template
On this page
FusionAuth sends this message when you create a user without a password and set sendSetPasswordIdentityType to phone on the Create a User request. Assign the template in Set up password on the Tenants -> Your Tenant -> Identities tab. To override the template for one Application, set the template on the Applications -> Your Application -> Identities tab.
Default Template#
FusionAuth ships the following default template:
Your account has been created and you must click the following link to set a password.
${baseUrl}/password/change/${changePasswordId}?client_id=${(application.oauthConfiguration.clientId)!''}&tenantId=${user.tenantId}
Replacement Variables#
applicationThe Application object. For field definitions, see the Application API.
The variable is present only when the request that sends the message identifies an Application. Check for the variable before you use it:
[#if application??]
${application.name}
[/#if]
baseUrlThe base URL for links in the message. FusionAuth uses the Application baseURL, then the Tenant baseURL, then http://localhost:9011.
changePasswordIdThe change password Id for the Change a User's Password API.
phoneNumberThe phone number FusionAuth sends the message to. The Generic messenger request has the same value in phoneNumber.
tenantThe Tenant object. For field definitions, see the Tenant API.
userThe User object for the recipient. For field definitions, see the User API.
Related
Learn when FusionAuth sends the email that asks a new user to set up a password, and which variables the template receives.
API documentation for the FusionAuth Create an Email Template API.
Learn about the APIs for creating, retrieving, updating and deleting email templates as well as sending emails to users.
API documentation for the FusionAuth Preview an Email Template API.