Trigger the Change Password (Code) Email Template

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:
    1.Go to Authentication > Authentication Profile and select Identifier First.
    2. Go to Authentication > Database, click on a database connection, and select the Attributes tab.
    3. Hover over to the three dots of the Email attributes, click Configure under Verification Methon, and set it to One Time Password (OTP).
    4. Click Save.

    5. 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.
    6. Click the Try button on the database connection.
    7. Enter an existing user’s email address stored in the database connection. On the next screen, click Forgot Password? and then click Continue.
    8. An email with the “Change Password (code)” email template will be sent.
    9. Enter the code received in the email to see the reset password prompt.