How to set the password lengtgh with Login Controls

A

ad

I want to limin the length of password must larger than 6.
How can I do with Login Controls of asp.net 2.0
 
R

Rad [Visual C# MVP]

Hey ad,

If you are creating a new user, and are using the create user wizard,
set the PasswordRegularExpression to \w{6,}

If you're changing the password of an existing user, and are using the
changepassword control, set the PasswordRegularExpression to \w{6,}
 
A

ad

J

Juan T. Llibre

Maybe you missed my reply to you ?

See :
http://www.odetocode.com/Articles/427.aspx

In web.config...

minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"




ad said:
But I want that there must include at least one alpha in it.
How can I do?
Brennan Stehling said:
The character class \w covers alphanumeric characters. It is the same
as [a-zA-Z_0-9] which includes the underscore.

You can find more detail here...

http://msdn.microsoft.com/library/d...en-us/cpgenref/html/cpconcharacterclasses.asp

Brennan Stehling
http://brennan.offwhite.net/blog/
If I wnat there must be a alpha charater in the password,. How can I do?

"Rad [Visual C# MVP]" <[email protected]>
???????:[email protected]...
Hey ad,

If you are creating a new user, and are using the create user wizard,
set the PasswordRegularExpression to \w{6,}

If you're changing the password of an existing user, and are using the
changepassword control, set the PasswordRegularExpression to \w{6,}

I want to limin the length of password must larger than 6.
How can I do with Login Controls of asp.net 2.0
 

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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top