gpt4 book ai didi

Asp.net 成员(member)密码

转载 作者:行者123 更新时间:2023-12-05 01:28:28 25 4
gpt4 key购买 nike

我正在使用 sql server 和自定义数据库来存储成员资格提供程序表。在我的 webconfig 文件中,我降低了密码强度,但成员仍然需要应用默认密码强度。以下是webconfig设置

 <membership>
<providers>
<add name = "AspNetSqlProvider"
type = "System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName = "LocalSqlServer"
enablePasswordRetrieval = "false"
enablePasswordReset = "true"
requiresQuestionAndAnswer = "true"
applicationName = "/"
requiresUniqueEmail = "false"
passwordFormat = "Hashed"
maxInvalidPasswordAttempts = "5"
minRequiredPasswordLength = "6"
minRequiredNonalphanumericCharacters = "0"
passwordAttemptWindow = "10"
passwordStrengthRegularExpression = "" />
</providers>
</membership>

最佳答案

您需要将您的成员(member)提供商设置为默认提供商。否则,它将使用在 Machine.Config 中定义的成员资格提供程序。 .

<membership defaultProvider="AspNetSqlProvider" userIsOnlineTimeWindow="30">
<providers>
<clear/>
<add name = "AspNetSqlProvider"
type = "System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName = "LocalSqlServer"
enablePasswordRetrieval = "false"
enablePasswordReset = "true"
requiresQuestionAndAnswer = "true"
applicationName = "/"
requiresUniqueEmail = "false"
passwordFormat = "Hashed"
maxInvalidPasswordAttempts = "5"
minRequiredPasswordLength = "6"
minRequiredNonalphanumericCharacters = "0"
passwordAttemptWindow = "10"
passwordStrengthRegularExpression = "" />
</providers>
</membership>

关于Asp.net 成员(member)密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10423739/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com