自定义/本地化Azure AD B2C自定义策略中的错误文本

时间:2020-03-30 15:12:40

标签: azure azure-active-directory azure-ad-b2c

我无法在azure ad b2c自定义策略中自定义以下错误消息。 如果输入的电子邮件地址不存在,此消息将包含在密码重置策略中。
本地化我使用以下id,但无法正常工作。

<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsTransformationStringsAreNotEqual">sample text</LocalizedString>

enter image description here

1 个答案:

答案 0 :(得分:1)

您需要使用其他字符串ID-UserMessageIfClaimsPrincipalDoesNotExist

          <LocalizedString ElementType="ErrorMessage" 
            StringId="UserMessageIfClaimsPrincipalDoesNotExist">sample test.</LocalizedString>

https://docs.microsoft.com/en-us/azure/active-directory-b2c/localization-string-ids