Login Id Duplicate on Create Email Template
On this page
This feature requires an Enterprise plan.
FusionAuth sends this email when someone tries to create a user with an email address, username, or phone number that already belongs to another user. The email goes to the existing account in event.existing, not to user. Don't put details about user in the email, because the recipient doesn't own that account. Assign the template in Login Id duplicate on create on the Tenants -> Your Tenant -> Identities tab. To override the template for one Application, set the template on the Applications -> Your Application -> Identities tab.
Example Template#
FusionAuth ships no default for this template. Start from the following example:
[#-- this email goes to the existing account, so don't show details about the new signup --]
<p>
Someone tried to create an account with a login Id that already belongs to your account. FusionAuth didn't create the account.
</p>
[#if application??]
<p>
If you tried to sign up and forgot your password, reset your password:
[#assign url = "${baseUrl}/password/forgot?client_id=${application.oauthConfiguration.clientId}&tenantId=${tenant.id}" /]
<a href="${url?html}">${url?html}</a>
</p>
[/#if]
- FusionAuth Admin[#-- this email goes to the existing account, so don't show details about the new signup --]
Someone tried to create an account with a login Id that already belongs to your account. FusionAuth didn't create the account.
[#if application??]
If you tried to sign up and forgot your password, reset your password:
${baseUrl}/password/forgot?client_id=${application.oauthConfiguration.clientId}&tenantId=${tenant.id}
[/#if]
- FusionAuth AdminReplacement Variables#
applicationThe Application object. For field definitions, see the Application API.
The variable is present only when the request that sends the email identifies an Application. Check for the variable before you use it:
[#if application??]
${application.name}
[/#if]
baseUrlThe base URL for links in the email. FusionAuth uses the Application baseURL, then the Tenant baseURL, then http://localhost:9011.
eventThe User Login Id Duplicate Create event. For field definitions, see the User Login Id Duplicate Create event reference.
tenantThe Tenant object. For field definitions, see the Tenant API.
userThe User object from the create request. FusionAuth didn't create this user, and the recipient doesn't own this account. For field definitions, see the User API.
Related
Learn when FusionAuth sends the email that tells a user another account tried to take their login Id, and which variables the template receives.
Learn when FusionAuth sends the email that confirms a password reset, and which variables the template receives.
Learn when FusionAuth sends the email that tells a user their password changed, and which variables the template receives.
Learn when FusionAuth sends the email that tells a user a two-factor method was added, and which variables the template receives.