ASP.NET 成员资格密码长度和其他属性
我要疯了,当我进入网站管理工具创建一些新用户时,它总是告诉我我的密码不是 7 个字符长。
错误消息:
Password length minimum: 7. Non-alphanumeric characters required: 1.
这是我的 web.config,似乎根本没有看过。
<membership userIsOnlineTimeWindow="20">
<providers>
<remove name="AspNetSqlProvider" />
<add name="AspNetSqlProvider" connectionStringName="LocalSqlServer"
type="System.Web.Security.SqlMembershipProvider"
applicationName="OCIS"
minRequiredPasswordLength="3"/>
</providers>
</membership>
我什至修改了 machine.config,重新启动后,结果仍然相同。 非常令人沮丧。
你们知道为什么我的 web.config 文件似乎被忽略了吗?
谢谢你,
史蒂夫
I am going crazy, when I go into the Web Site Administration Tool to create some new users, it always tells me that my password is not 7 characters long.
Error msg:
Password length minimum: 7. Non-alphanumeric characters required: 1.
Here is my web.config, seems like it is not even looked at.
<membership userIsOnlineTimeWindow="20">
<providers>
<remove name="AspNetSqlProvider" />
<add name="AspNetSqlProvider" connectionStringName="LocalSqlServer"
type="System.Web.Security.SqlMembershipProvider"
applicationName="OCIS"
minRequiredPasswordLength="3"/>
</providers>
</membership>
I even went as far to modify the machine.config and after rebooting, still the same result.
Very frustrating.
You guys have any ideas why my web.config files seems to be ignored?
Thank you,
Steve
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
AspNetSqlProvider
不是MembershipSection
中定义的默认提供程序名称。因此,您必须按如下方式设置默认提供程序名称。The
AspNetSqlProvider
is not the default provider name that is defined in theMembershipSection
. Thus, you have to set the default provider name as follows.您可能永远不需要修改 machine.config,但我理解您的沮丧。
首先,尝试根据您的规范实现本地配置中提供程序的所有属性,看看会发生什么。
You probably should never have need to modify machine.config but I understand your frustration.
First, try implementing all properties of the provider in your local config to your specs and see what happens..