Question: CreateUserWizard - how change "valid" password

V

VB Programmer

Right now, if you use the CreateUserWizard for ASP.NET 2.0 a valid password
is this:

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

How do I change it so that a valid password does NOT require a
non-alphanumeric character?

Thanks!
 
C

chris

You set it in the web.config file if I am not mistaken

<membership defaultProvider="myProvider">
<providers>
<add name="myProvider" connectionStringName="myConnection"
minRequiredNonAlphanumericCharacters="0" minRequiredPasswordLength="3"
/>
</providers>
</membership>
 
V

VB Programmer

Isn't connectionStringName, etc... for db related stuff?

I'm just speaking of the built in validator for the password box in the
CreateUserWizard.

Thanks....
 
C

chris

Yes, but your membership data usually resides in a database. Please
try the other things and see if it works. The
minRequiredNonAlphaNumericCharacters is what tells the Membership API
not to worry if the password has a non-Aphanumeric character and that
is what you asked for.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top