Is there a way to hide the forgot password link on New Universal Login?

As the question title states, is there a way I can hide the Forgot Password? link for a custom Auth0-hosted database? I’m not using Lock.js, just the new universal login and while I can use a blank space for the Forgot Password link, it doesn’t present well.

I know I can use allowForgotPassword: false on the custom HTML, but then I lose the styling from Universal Login.

Any help is kindly appreciated :slight_smile:

Kind regards,

Dave.

Hi @dawid.karszniewicz,

Welcome to the Auth0 Community!

To hide the Forgot Password from the New Universal Login, you will need to call the Management API’s Update a user endpoint and pass in the disable_self_service_change_password: true option in the request.

Doing so will remove the forgot password link from the Universal Login page.

Let me also mention that when using the options parameter in the request, the whole options object will be overridden, so you will want to ensure that all parameters are present.

For example:

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

And if you wish to revert your changes, you can pass the same body and set disable_self_service_change_password: null instead of true.

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

I hope this helps!

Please let me know if there’s anything else I can do to help.

Thanks,
Rueben

3 Likes

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