Jam*_*ord 3 sitecore sitecore6
是否有可用于指定在自动生成的密码中使用哪些字符的设置?
我们目前的密码是一些特殊字符的混乱,我们希望将来稍微整理一下.
有一个Sitecore.SecurityModel.Cryptography.PasswordGenerator类,用于将随机密码分配给Sitecore Packager安装的安全帐户.它包含一个属性Exclusions,该属性是生成密码时要排除的字符串.
所以,似乎你可以实现你需要的东西:
var generator = new Sitecore.SecurityModel.Cryptography.PasswordGenerator();
generator.Exclusions = @"%|)(";
generator.Generate();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
195 次 |
| 最近记录: |