Trigger the Change Password (Code) Email Template
Sep 10, 2025
Overview
This article will explain how to trigger the Change Password (Code) email template.
- The Change Password (Code) email template is related to an early access feature - One-time passwords for email verification.
- One-time passwords (OTPs) can be emailed to each new user at the time of account creation to ensure every user has a verified email. Users will be challenged on signup verification and password reset if applicable.
- The documentation One-time passwords (early access) describes this feature.
Applies To
- Password Reset
- One-time Passwords (OTP)
- Email Verification
- Change Password (Code)
- Email templates
Solution
To trigger the Change Password (code) email template, enable "One-Time Password (OTP)" in the "email" attribute of the database connection.
- To use OTPs, the tenant must have Universal Login, Flexible Identifiers, and Identifer-First login enabled.
- Here are the steps for the Auth0 Dashboard:
-
- Go to Authentication > Authentication Profile and select Identifier First.
- Go to Authentication > Database, click on a database connection, and select the Attributes tab.
- Hover over to the three dots of the Email attributes, click Configure under Verification Methon, and set it to One Time Password (OTP).
- Click Save.
-
- Enable the connection for one of the applications by selecting the Applications view and enabling the switch for each Auth0 application that should be able to use this connection.
- Click the Try button on the database connection.
- Enter an existing user's email address stored in the database connection. On the next screen, click Forgot Password? and then click Continue.
- An email with the "Change Password (code)" email template will be sent.
- Enter the code received in the email to see the reset password prompt.