我们目前正在评估在 AAD B2C 中进行自定义电子邮件验证的新功能(当前为公共预览版)
我们对该功能的初步测试非常积极。但是,我们担心我们的一些用户可能不完全了解他们正在接收电子邮件并且必须检查他们的收件箱。“默认”验证机制显示如下消息(键:“ver_info_msg”):
验证码已发送到您的收件箱。请将其复制到下面的输入框中。
该示例没有向用户显示任何专用消息,它仅显示新控件。
有没有办法为此向用户发送本地化消息?通过通常的机制进行本地化会很棒。我知道这可能不是微不足道的,因为一次性密码提供程序可以以多种方式使用 - 不仅用于自定义电子邮件 - 但能够向用户提供一些反馈会很棒。
是否有更多的 UserMessages 可用于此?我目前的解决方法是本地化“验证码”字段的描述和占位符,但这对用户来说不太明显。
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.OneTimePasswordProtocolProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<Metadata>
<Item Key="Operation">VerifyCode</Item>
<Item Key="UserMessage.VerificationHasExpired">You have exceed the maximum time allowed.</Item>
<Item Key="UserMessage.MaxRetryAttemped">You have exceed the number of retries allowed.</Item>
<Item Key="UserMessage.InvalidCode">You have entered the wrong code.</Item>
<Item Key="UserMessage.ServerError">Cannot verify the code, please try again later.</Item>