Variable application.name in Change Password Template Appearing as Tenant Name

Last Updated: Dec 17, 2024

Overview

Modified the change password email template to include the {{application.name}} common variable and hit the “/dbconnections/change_password” endpoint without the client_id parameter to trigger the change password email.

When viewing the email in the inbox, the {{application.name}} common variable is not displaying the correct name, and it is showing the tenant name instead of the application name.

Applies To

  • Change Password Template
  • Variables

Cause

When using the “/dbconnections/change_password” endpoint without the “client_id” value, Auth0 cannot determine which application/client to use. Adding the “client_id” value of the application to this endpoint will make it so the template knows which application data to display.

Solution

When calling the “/dbconnections/change_password” endpoint, include the client_id parameter.