Inconsistencies with the prompted error messages on b2c user flow default layout and custom layout

Thiwanka Bandara 21 Reputation points
2022-08-24T08:36:24.207+00:00

Currently I'm using b2c identity provider feature to cater sign-in and sign up process in our app. Instead of using default pages in user flows, we are using custom pages. In there we could see some inconsistencies in the prompted error messages.

Steps to reproduce:

When a user enters an incorrect email, the error message shown has a full stop at the end of the error message. This is inconsistent with other displayed error messages as they do not end with a full stop.

234339-image-20220823-114419.png

When user does not add any values to the email & password fields, and clicks “Sign In” button, the error message displayed under the Email Address text box should display “Please enter your email address”.

234366-image-20220823-110712.png

Appreciate your support on resolving this issue.

Thanks,

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

Accepted answer
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    2022-08-25T11:03:17.547+00:00

    Hi @Thiwanka Bandara ,

    Thanks for reaching out.

    I understand you are looking to update error messages on your custom page layout to make this consistent with other error messages on B2C user flow.

    You can customize the error messages using Localization as per your requirement.

    In you user flow, go to the Languages blade and choose the language for which you want to customize the error messages.

    Select the page, in this case "Unified sign up or sign in page" and download defaults.

    234884-image.png

    You can update the error messages as per your requirement in the json file and upload it back to override the changes.

    234816-image.png

    234876-image.png

    Reference: https://learn.microsoft.com/en-us/azure/active-directory-b2c/localization

    Hope this will help.

    Thanks,
    Shweta

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

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

    0 comments No comments

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.