All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
PHP实例:PHP上传自动生成缩略图及水印类_[PHP教程]
php中加入播放flv视频代码_php资料_编程技术
C#,3.0新特性系列:隐含类型var_[Asp.Net教程]
.NET3.5和VS2008中的ASP.NET,AJAX_.net资料_编程技术
扩展LINQ,to,SQL:使用Lambda,Expression批量删除数据_[Asp.Net教程]
ASP.NET,防盗链源码_[Asp.Net教程]
LINQ体验(14)——LINQ,to,SQL语句之存储过程_[Asp.Net教程]
delphi几个常用的vcl组件使用实例
SQL,Server,2008,R2十大新特性解析_mssql学习_编程技术
asp.net2.0中读取web.config数据库连接字符串2种方法_.net资料_编程技术
Reading number is top 10 pictures
住院一星期,检测费两万
9.3阅兵全景图3-外国方阵梯队和坦克方阵梯队
Breasts woman big set 1
教你做读书笔记
Sell the barbecue as says father du breul5
采访美女孙菲菲
Small QiShu -- ShuangShuangPan2
Players in the eyes of a perfect love1
XuYing poker perspective garment debut
The little woman's bright wire1
Download software ranking
1400篇各类破解文章
Sora aoi's film--cangkong_Blue.Sky
Tram sex maniac 2 (H) rar bag4
Unix video tutorial14
打鸟视频
星际争霸1.08硬盘免安装版
Be there or be square
卡丁车单机版
Boxer vs Yellow1
Boxer's Top ten classic battle1
delv published in(发表于) 2014/1/8 7:03:21 Edit(编辑)
修改asp.net2.0内置成员管理中的强密码规则_[Asp.Net教程]

修改asp.net2.0内置成员管理中的强密码规则_[Asp.Net教程]

修改asp.net2.0内置成员管理中的强密码规则_[Asp.Net教程]

错误提示:

  密码最短长度为 7,其中必须包含以下非字母数字字符: 1


  解决方案:


  收到以上的消息主要是在创建用户的时候产生的,对于用Asp.net 网站管理工具的时候创建用户也会产生。主要是密码输入不符合要求,要改变上面的规定时,主要有两种方法:


  1.所有的站点都改变。


  找到machine.config文件




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="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />


  里面有两个属性,一个是 minRequiredPasswordLength,意思是最长密码,默认为7另一个是minRequiredNonalphanumericCharacters,默认为1,意思是至少有一个非字母字符,只要把它改成0就可以了。


  2.假如只是对某一个站点,只要修改web.config的值就ok了


  修改如上,把上面的代码插入在下面就ok了。


  如要改成密码规则是"至少6个字符,而不用特殊字符的",如下:
(注:一定要加上 ,否则会提示"项“AspNetSqlMembershipProvider”已添加"的出错信息)





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="" />


来源:网络







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.