Simplified Forgot password flow in Azure B2C custom policy

apparao 1 Reputation point
2022-11-04T09:34:12.133+00:00

Simplified Forgot password flow in Azure B2C custom policy

a. Enter username on click next/continue send OTP to associated email address – 1st screen.

b. Enter code and click validate code (cancel and Resend Code option/button will be there – no need of change email and continue button)  -2nd screen   

on successful verification without clicking the continue button user should navigates to below 3rd screen

 c. Display the Password and confirm password fields screen. -3rd screen  
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,761 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 29,531 Reputation points Microsoft Employee
    2022-11-10T07:33:46.987+00:00

    Hi @apparao ,

    Thanks for reaching out.

    I understand you are trying to skip the below page in forgot password flow :

    258989-image.png

    This can be achieved using JavaScript mutator function. Use it to detect that the Continue button has changed property (become enabled), and then trigger a function to hide the Change button and perform a click event on the Continue button.

    You need to remove the Continue button from the first step. This leaves the "Send Verification Code" button and the e-mail input in the UI.

    Then hides the Continue button for the second step and disables the ability to alter the e-mail address after "Send Verification Code" is clicked.

    Enable click event on the Continue button for the user after the user's verification code has been confirmed valid, eliminating the need to click the Continue button.

    Hope this will help.

    Thanks,
    Shweta

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

    Please remember to "Accept Answer" if answer helped you.