Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - username & password validation

 
Thread Tools Search this Thread
Old 08-06-2006, 10:03 PM   #1
Default username & password validation


are there special requirements for membership user and password fields other
than length restrictiosns?



Thanks!


=?Utf-8?B?RGFiYmxlcg==?=
  Reply With Quote
Old 08-06-2006, 10:07 PM   #2
Juan T. Llibre
 
Posts: n/a
Default 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" <> wrote in message
news:74CABEE1-DD07-4F1B-B303-...
> are there special requirements for membership user and password fields other
> than length restrictiosns?
> Thanks!



  Reply With Quote
Old 08-06-2006, 10:09 PM   #3
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
 
Posts: n/a
Default 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:

> are there special requirements for membership user and password fields other
> than length restrictiosns?
>
>
>
> Thanks!

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump