Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900