How to change forget password url in universal login page

Hi @hitesh.saini

Thanks for getting in touch with Auth0 Community.

There isn’t a way to do this out of the box but there may be some workarounds and these apply to New Universal Login.

The Login interface would normally contain a text prompt of the form ‘Forgot password?’, which would link to the standard Auth0 change-password flow.

As a first step, there is a way to prevent this ‘Forgot password?’ prompt fom being displayed. This can be achieved by patching a database connection with the attribute disable_self_service_change_password.

You can read more about this change in this Community article:

For the second step, you have two options:

  • add a ‘Forgot password?’ link to the header or footer, similar to this example:

However, this does not have a strong visual impact, with the result that some users may not notice the link.

  • I know some customers have managed to use some javascript to edit the existing href property but I do not have an example of this. It may be possible to achieve this via Page Templates API or Auth0 CLI

There are a few possible drawbacks:

  1. this is a non-standard approach, so I cannot guarantee that it will work.
  2. even if it worked today, I cannot guarantee that it will continue to work in the future, as Auth0 continually strives to improve the user experience
  3. it is is not an “official” feature, so it would not be formally supported

Those are only the two approaches that I think may work for you when using New Universal Login.

We do have a feature request in our backlog though to make this process easier for customers going forward.

Warm regards.

1 Like