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

Problem statement

The {{application.name}} common variable isn’t displaying the correct name when using the change password email template. It’s showing the tenant name instead of the application name.

Steps to reproduce

  • Modify the change password email template to include the {{application.name}} common variable
  • Hit the /dbconnections/change_password endpoint without the client_id parameter to trigger the change password email
  • View the email in your inbox and it should show the “application.name” as the tenant name instead

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.