如何定义ASP.NET成员资格提供程序的密码规则? [英] How do I define the password rules for the ASP.NET Membership Provider?
问题描述
在通过ASP.NET成员资格提供程序使用Web表单身份验证时,默认情况下我们会遵循一些严格的密码规则.我认为需要八个字符,包括一个非字母.
When using web forms authentication with the ASP.NET Membership provider, we are defaulted to some decently strict password rules. I think eight characters, including one non-alpha, are required.
我并不是想让它们变得随意,但通常我不会在自己的密码中使用非字母字符,并且感觉像伪君子一样在强迫用户这样做.
I'm not looking to make them all willy-nill loose, but generally I do not use a non-alpha character in my own password, and feel like a hypocrite forcing my users to do so.
我已经做了一些查找,但是无法弄清楚该规则的定义位置.我确定我只是缺少一些简单的东西-有人知道吗?
I've done some looking, but can't figure out where this rule is defined. I'm sure I'm just missing something simple - anyone know?
推荐答案
在本文中,您可以设置minRequiredNonAlphanumericCharacters设置:
See this article where you can set the minRequiredNonAlphanumericCharacters setting:
http://msdn.microsoft.com/en-us /library/ms998347.aspx#paght000022_sqlmembershipproviderconfig
这篇关于如何定义ASP.NET成员资格提供程序的密码规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!