Azure B2C Forgot Password & Custom HTML templates

skhsjdksjdn-6642 41 Reputation points
2022-02-24T18:58:59.797+00:00

In the forgot password page where the user sets the new password (last step), its being reverted to the MS templates instead of custom HTML templates. The custom template works all the way till that last step even for the forgot password flow (Send email, MFA code validation). Are there any logs on what is happening for it? Is there any documentation for it? We are using "UserFlows" for B2C. Login custom HTML template works fine and it is the same template for login/forgot password flows. It was developed using "selfAsserted.html". We are using only sign In and reset password flows.

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

Accepted answer
  1. AmanpreetSingh-MSFT 56,866 Reputation points Moderator
    2022-02-25T13:45:12.36+00:00

    @Edenred-6642 • Thank you for reaching out.

    I understood that you are using custom page for password reset but during the process when you move to then next page (change password page), you do not get the customized page.

    As Password Reset User Flow in Azure AD B2C is a two-step process, you need to do the page customize for the pages used at both steps. So you need to set the custom page for both Forgot password page as well as the Change password page. If you set only the Forgot password page, only the first page is customized but the change password page at the next step will be the default page. This is why you need to set both the pages, as highlighted below:

    177809-image.png

    I have tested it out with the below page (Forgot password and Change password page) and it worked for me. You can view the page source for reference.

    https://moviesdiag132.blob.core.windows.net/b2c/ResetPwd.html

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

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.