Connecting Tech Pros Worldwide Help | Site Map

username & password validation

Dabbler
Guest
 
Posts: n/a
#1: Aug 6 '06
are there special requirements for membership user and password fields other
than length restrictiosns?



Thanks!
Juan T. Llibre
Guest
 
Posts: n/a
#2: Aug 6 '06

re: username & password validation


You can set the following attributes in the providers section
of your <membership defaultProvider...element of web.config :

minRequiredPasswordLength
The default is 7

minRequiredNonalphanumericCharacters
The default is 1

So, the answer to your question is "minRequiredNonalphanumericCharacters", i.e.,
the number of minimum required Non-alphanumeric characters which users must provide.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
===================================

"Dabbler" <Dabbler@discussions.microsoft.comwrote in message
news:74CABEE1-DD07-4F1B-B303-0710B89A5311@microsoft.com...
Quote:
are there special requirements for membership user and password fields other
than length restrictiosns?
Thanks!

Peter Bromberg [C# MVP]
Guest
 
Posts: n/a
#3: Aug 6 '06

re: username & password validation


Dabbler,
You can dabble your way on over to the MSDN for the old RTFM and read up on
the Membership class' properties:

http://msdn2.microsoft.com/en-us/lib...roperties.aspx

Most of these can be set in the web.config node for provider.

Cheers,

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"Dabbler" wrote:
Quote:
are there special requirements for membership user and password fields other
than length restrictiosns?
>
>
>
Thanks!
Closed Thread