How do modify Azure AD B2C sign in page errors ? As attached in screenshot it is saying "your Password has expired, PLease change to new password" I want to change this notification or error. Can someone please assist me how to change this?

Gopi CK 31 Reputation points
2022-12-06T05:27:38.643+00:00

267528-image.png

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

Accepted answer
  1. Givary-MSFT 35,621 Reputation points Microsoft Employee Moderator
    2022-12-08T05:57:51.097+00:00

    @Gopi CK Thank you for reaching out to us. As I understand you would like to customize this message "your Password has expired, Pease change to new password" during the user journey.

    You can refer to this sample: https://github.com/azure-ad-b2c/samples/blob/master/policies/force-password-reset/policy/TrustFrameworkExtensions_ForcePasswordReset.xml to achieve your task.

    Reference:
    https://learn.microsoft.com/en-us/azure/active-directory-b2c/localization#errormessage
    https://learn.microsoft.com/en-us/answers/questions/1013814/azure-ad-b2c-localization-can-we-make-error-messag.html
    https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/active-directory-b2c/oauth2-error-technical-profile.md#oauth2-error - different example but a similar approach needs to be followed.

    Let me know if you have any further questions.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Gopi CK 31 Reputation points
    2022-12-08T14:38:56.423+00:00

    @Givary-MSFT
    Thanks. Now I can able to modify notification to "Your Temporary Password has expire, Please change to a new password".

    Further when I enter wrong temporary password with right New password> Clicked on continue.
    Now it is saying "Invalid username or password". But it should say your temporary password is wrong.

    268618-image.png

    0 comments No comments

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.