客户在 Azure Active Directory B2C 中注册期间禁用电子邮件验证Disable email verification during customer sign-up in Azure Active Directory B2C

禁用电子邮件验证Disable email verification

默认情况下,Azure Active Directory B2C (Azure AD B2C) 将验证客户的本地帐户(使用电子邮件地址或用户名注册的用户的帐户)的电子邮件地址。By default, Azure Active Directory B2C (Azure AD B2C) verifies your customer's email address for local accounts (accounts for users who sign up with email address or username). Azure AD B2C 通过要求客户在注册过程中验证电子邮件地址来确保电子邮件地址有效。Azure AD B2C ensures valid email addresses by requiring customers to verify them during the sign-up process. 它还可防止恶意执行组件使用自动进程在应用程序中生成欺诈帐户。It also prevents malicious actors from using automated processes to generate fraudulent accounts in your applications.

某些应用程序开发人员愿意在注册过程中跳过电子邮件验证,而让客户在以后验证电子邮件地址。Some application developers prefer to skip email verification during the sign-up process and instead have customers verify their email address later. 要支持此功能,可将 Azure AD B2C 配置为禁用电子邮件验证。To support this, Azure AD B2C can be configured to disable email verification. 这样做可创建更流畅的注册过程,并使开发人员可以灵活地将已验证电子邮件地址的客户与尚未验证电子邮件地址的客户区分开来。Doing so creates a smoother sign-up process and gives developers the flexibility to differentiate customers that have verified their email address from customers that have not.

警告

在注册过程中禁用电子邮件验证可能会导致垃圾邮件。Disabling email verification in the sign-up process may lead to spam. 如果禁用默认 Azure AD B2C 提供的电子邮件验证,我们建议你实现替换验证系统。If you disable the default Azure AD B2C-provided email verification, we recommend that you implement a replacement verification system.

请按照以下步骤禁用电子邮件验证:Follow these steps to disable email verification:

  1. 登录到 Azure 门户Sign in to the Azure portal
  2. 使用顶部菜单中的“目录 + 订阅” 筛选器来选择包含 Azure AD B2C 租户的目录。Use the Directory + subscription filter in the top menu to select the directory that contains your Azure AD B2C tenant.
  3. 在左侧菜单中,选择“Azure AD B2C” 。In the left menu, select Azure AD B2C. 或者,选择“所有服务” 并搜索并选择“Azure AD B2C” 。Or, select All services and search for and select Azure AD B2C.
  4. 选择“用户流” 。Select User flows.
  5. 选择要禁用电子邮件验证的用户流。Select the user flow for which you want to disable email verification. 例如,B2C_1_signinsignupFor example, B2C_1_signinsignup.
  6. 选择“页面布局”。 Select Page layouts.
  7. 选择“本地帐户注册页” 。Select Local account sign-up page.
  8. 用户属性下,选择“电子邮件地址” 。Under User attributes, select Email Address.
  9. 在“要求验证” 下拉列表中,选择“否” 。In the REQUIRES VERIFICATION drop-down, select No.
  10. 选择“保存” 。Select Save. 现在已为此用户流禁用电子邮件验证。Email verification is now disabled for this user flow.

后续步骤Next steps