Azure B2C Password does not match error bad behaviour

Alejandro Miranda 0 Reputation points
2024-05-21T11:09:26.27+00:00

We have developed a project with Azure B2C and by testing we have detected that when registering, when the passwords do not match, the browser does not go up directly to show you the error message, it remains at the bottom of the page screen, with other errors it does automatically go up to the message.

You can check the behavior with this live demo by filling in everything correctly except the passwords, making them not match, you will see how the error that the passwords do not match appears but the browser does not take you to the error message but stays at the bottom

https://b2clivedemo.b2clogin.com/b2clivedemo.onmicrosoft.com/B2C_1A_Demo_SUSI_TOU/oauth2/v2.0/authorize?client_id=cfaf887b-a9db-4b44-ac47-5efff4e2902c&nonce=defaultNonce&redirect_uri=https://jwt.ms&scope=openid&response_type=id_token&prompt=login

Is there a way to fix this behavior?

Thanks you,

regards

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,959 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Navya 4,860 Reputation points Microsoft Vendor
    2024-05-23T11:40:13.0266667+00:00

    Hi @Alejandro Miranda

    Thank you for posting this in Microsoft Q&A.

    I understand that when you attempt to enter a mismatched password, it doesn't show an error message until you perform a click-create event.

    You can use the special claim type reenterPassword to validate that the user correctly re-entered their password during user input collection.

    In order to resolve the behavior, follow the steps mentioned in this document. https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-policies-series-validate-user-input#step-4---validate-password-and-confirm-password

    Hope this helps. Do let us know if you any further queries.

    Thanks,

    Navya.

    If my understanding of the issue is incorrect, feel free to post back.

    0 comments No comments