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.
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:
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:
- this is a non-standard approach, so I cannot guarantee that it will work.
- 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
- 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.
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.