Search code examples
azure-active-directoryazure-ad-b2cazure-ad-b2c-custom-policy

Customizing ADB2C Login Page with Forgot ‘UserName’ link


I’ve implemented a user login page using ADB2C custom html template. Once user initiates a login, b2c signin userflow triggers the unified.html and displays a login UI successfully. During login user will use username field which is a unique attribute.

There is a use case to show an “forgot UserName” link in the signin page, along with the “forgot Password” link. Any suggestions to handle this forgot UserName link usecase?


Solution

  • Refer to this sample.

    This shows adding "Forgot password" as a button, not a link.

    So you could add another button for "Forgot username" and that would then kick off the forgot username flow in the same manner.