B2C custom policy

deepti potdar 1 Reputation point
2022-05-26T19:54:59.147+00:00

I have to customize the Forgot password user flow. How do I remove the Continue button from the following screens:
205897-image.png

205870-capturequestion.png

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,876 Reputation points Moderator
    2022-05-27T11:12:29.183+00:00

    Hi @deepti potdar • Thank you for reaching out.

    In order to hide the Continue button in the Forgot password user flow, you need to perform the below steps:

    1. Create your own custom HTML page and add CSS/JavaScript to the page to hide the continue button. Please refer to the page source of My Custom HTML Page, where I have used the style tag to hide the continue button.
    2. After making the changes, upload the file to blob storage for example, and copy the URL.
    3. In your custom policy files, look for the api.localaccountpasswordreset content definition ID and add the URL as the LoadUri, as mentioned below: <ContentDefinition Id="api.localaccountpasswordreset">
      <LoadUri>https://moviesdiag132.blob.core.windows.net/b2c/ResetPwd.html</LoadUri>
      <RecoveryUri>~/common/default_page_error.html</RecoveryUri>
      <DataUri>urn:com:microsoft:aad:b2c:elements:contract:selfasserted:1.1.0</DataUri>
      </ContentDefinition>
    4. Save and upload your policy files.

    See this in action: Go to https://b2c.cloud365.in > click on sign in > on the sign-in page, click on Forgot your password link > the continue button will be hidden.

    Hope this helps.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.