【发布时间】:2020-02-26 23:21:13
【问题描述】:
用户可以使用包含+ 的电子邮件使用 Azure AD B2C 进行注册和登录。但是,当单击登录页面上的“忘记密码”链接并输入带有+ 字符的电子邮件时,会显示以下错误:
我在 Azure 的反馈网站上看到了 2 个相关问题:
allow plus sign in email addresses [用户 Naud van Onna 的评论与此问题相符。 ]
我看到在电子邮件地址中使用“+”号成功注册 也是。不幸的是,密码重置功能不起作用 使用带有“+”符号的电子邮件地址。
和
Support plus-addressing in emails, which is invaluable for testing [ 在这篇文章中提到了描述我们情况的电子邮件sub-addressing 功能。我们使用+ 电子邮件地址来测试我们的应用程序。 ]
自定义策略 .xml 文件中是否有我可以输入自定义正则表达式来验证此电子邮件地址并允许使用 + 符号的位置?
我在TrustFrameworkBase.xml 文件中看到了<TechnicalProfile Id="LocalAccountDiscoveryUsingEmailAddress">,但我不确定在哪里修改它...
<!-- This technical profile forces the user to verify the email address that they provide on the UI. Only after email is verified, the user account is
read from the directory. -->
<TechnicalProfile Id="LocalAccountDiscoveryUsingEmailAddress">
.
.
.
【问题讨论】:
标签: regex azure-ad-b2c email-validation forgot-password reset-password