Click here to Skip to main content
14,302,372 members
Rate this:
Please Sign up or sign in to vote.
See more:
Dear All


I am using ASP.Net Membership, while creating user wizard I am getting the following error.

Password length minimum: 7. Non-alphanumeric characters required: 1

I have added the following code in web.config file inside the Account folder

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



please tell me how to fix the error.

Regards
Posted
Comments
F-ES Sitecore 22-Aug-15 8:28am
   
Make the changes to the settings in the web.config in the root of the site, that is where they are read from.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Well, you could try changing minRequiredPasswordLength to 7, and specifying a regex that requires at least one non alpha character...
[^\w]
should do it...
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100