系统默认要求密码要有足够的强度,好象是字母加特殊字符才行。能不能改变一下,让任何密码都被系统接受?

解决方案 »

  1.   

    by default, passwords must be a minimum of seven characters, at least one of which must be non-alphanumericfollow the advice in this article , try to modify the following properties in the web.confighttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000022.aspminRequiredPasswordLengthminRequiredNonAlphanumericCharacterspasswordStrengthRegularExpression 
    also seehttp://.michaelis.net/Blog/PasswordsInVS2005Beta2sPersonalWebsiteStarterKit.aspx
      

  2.   

    <membership>
      <providers>
        <remove name="AspNetSqlMembershipProvider"/>
        <add name="AspNetSqlMembershipProvider" 
        type="System.Web.Security.SqlMembershipProvider" 
        connectionStringName="DolAspNetProvider" 
        enablePasswordRetrieval="false" 
        enablePasswordReset="true" 
        requiresQuestionAndAnswer="true" 
        applicationName="/" 
        requiresUniqueEmail="false" 
        minRequiredPasswordLength="6" ---定义密码的长度。
        minRequiredNonalphanumericCharacters="0" 
        passwordFormat="Hashed" 
        maxInvalidPasswordAttempts="5" 
        passwordAttemptWindow="10" 
        passwordStrengthRegularExpression="" ---这里是定义强密码的正值表达式。
       />   
      </providers>
    </membership>