How to change forget password url in universal login page

Hi
I want only implement universal login, I already have forget password pages, so i just want to replace forgot password url on universal login page so when user click on it user will redirect to that page, Is it possible to do that? I tried custom login page but did not get the idea where should i change that url.

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:

https://community.auth0.com/t/how-to-remove-the-forgot-password-link-from-the-new-universal-login-page/92554

For the second step, you have two options:

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

https://auth0.com/docs/customize/universal-login-pages/universal-login-page-templates#page-footers

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

Thanks for kind response

I got it, just add forgotPasswordLink: 'https://yoursite.com/reset-password'
in lock config
here is whole page to configure it.
https://auth0.com/docs/libraries/lock/lock-configuration

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.