How to remove the Forgot Password link from the New Universal Login page

Problem Statement

We want to manage the password reset flow outside the New Universal Login page. How to remove the Forgot Password Link?

Solution

You can achieve this by including a disable_self_service_change_password option in database connections.
This option is not visible in the dashboard, so the only way to change it is to send a PATCH request to the database connection with options.disable_self_service_change_password set to true.

This can be done using the ‘PATCH /api/v2/connections/{id}}’ Management API (Auth0 Management API v2):

PATCH: https://YOUR_DOMAIN/api/v2/connections/{connection_id}

An important note: if you use the options parameter, the entire options object will be overridden, so you’ll want to ensure that all parameters are present

Request body:

{
  "options": {
    "disable_self_service_change_password": true,
    //rest of options object
  }
} 

If you wish to turn that back on after, just send the same body, but instead of true, put null.

{
  "options": {
    "disable_self_service_change_password": null,
    //rest of options object
  }
}