首先,要创建一个包含所需文本字符串的本地化资源文件。
例如,创建一个名为“PasswordReset.resx”的资源文件,并在其中添加“New Password”和“Confirm New Password”资源键和对应的字符串值。
接下来,需要修改AD B2C中的密码重置自定义策略以添加自定义HTML内容和相应的本地化资源。
例如:
Password Reset
- your_client_id
- false
- your_client_secret
- your_audience
- We could not sign you in. Please try again.
- Your password is incorrect. Please try again.
- You cannot reuse a previous password. Please try again.