[英]Azure AD B2C unable to localize 'The password must have at least 3 of the following:'
我一直在为自定义翻译提取 Azure AD B2C 字符串,但一直难以找到字符串“密码必须至少包含以下 3 项:”的正确标识符。
我正在使用用户流策略类型。 注册并登录流程类型。 密码复杂性:强。
在Azure Portal,我已经下载了自定义语言的“更改密码页面”模板。 我修改了文件进行测试,然后上传了文件。
大多数情况下这是有效的(在找到丢失的条目并创建它们之后)。
据我所知,缺少的元素应该是:
{
"ElementType": "PredicateValidation",
"ElementId": "StrongPassword",
"StringId": "CharacterClasses",
"Override": true,
"Value": "hy:The password must have at least 3 of the following:"
}
但是,上传时,返回验证错误,上传失败。
1 Validation errors found in upload overrides for api.selfasserted.localaccountpasswordchange2.1. Please ensure that your uploaded resource matches the template: The localized string with ElementType: PredicateValidation, ElementId: StrongPassword and StringId: CharacterClasses is not a valid override.
更新:
尝试:
{
"ElementType": "InputValidation",
"ElementId": "CustomPassword",
"StringId": "CharacterClasses",
"Override": true,
"Value": "The password must have at least 3 of the following:"
}
这个上传。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.