Thursday, October 09, 2008

SqlRoleProvider - change password length

To change required password length add this section in config file:



<system.web>


<roleManager enabled="true" > </roleManager>


<membership>


<providers>


<clear/>


<add name="AspNetSqlMembershipProvider"


connectionStringName="LocalSqlServer"


enablePasswordRetrieval="false"


enablePasswordReset="true"


requiresQuestionAndAnswer="false"


applicationName="/"


requiresUniqueEmail="true"


passwordFormat="Hashed"


maxInvalidPasswordAttempts="10"


minRequiredPasswordLength="3"


minRequiredNonalphanumericCharacters="0"


passwordAttemptWindow="10"


passwordStrengthRegularExpression=""


type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>


</providers>


</membership>


No comments: