从 B2C 自定义策略注册流程中删除文本

问题描述 投票:0回答:1

在注册页面,当现有用户尝试注册时,会出现错误,该用户已存在。但它显示文本“已确认的电子邮件地址”,我们如何删除该文本?

azure azure-active-directory azure-ad-b2c azure-ad-b2c-custom-policy
1个回答
0
投票

当您创建自定义策略时,您应该能够在策略的本地化部分定义此消息。

此文件的示例在这里:

https://github.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/blob/main/Display%20Controls%20Starterpack/LocalAccounts/TrustFrameworkLocalization.xml

  <!-- Generic errors -->
  <LocalizedString ElementType="ErrorMessage" StringId="ServiceThrottled">There are too many requests at this moment. Please wait for some time and try again.</LocalizedString>
  <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimNotVerified">Claim not verified: {0}</LocalizedString>
  <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsPrincipalAlreadyExists">A user with the specified ID already exists. Please choose a different one.</LocalizedString>
  <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfIncorrectPattern">Incorrect pattern for: {0}</LocalizedString>
  <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidInput">{0} has invalid input.</LocalizedString>
  <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfMissingRequiredElement">Missing required element: {0}</LocalizedString>
  <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfValidationError">Error in validation by: {0}</LocalizedString>
© www.soinside.com 2019 - 2024. All rights reserved.