INTELLIGENT.TECHNICAL.ARCHITECTURE.TRAINING

 
 
Blogs:
 
 

Passwords in VS 2005 Beta 2's Personal Website Starter Kit

April 27, 2005 / 1 Comment
AUTHOR:
CATEGORY: .Net


I decided to use VS 2005 Beta 2′s Personal Website Starter Kit in a VSTS Web Test article I am writing.  The problem was that every time I tried to add a user I received the error, “Please enter a different password.”  As documented in the Beta 2 SDK readme in the section titled “3.1.5 ASP.NET Membership Enforces Password Strength Requirements,” the issue is the password requirements.  Passwords must be a minimum of seven characters, at least one of which must be non-alphanumeric.

To change this you need to modify the minRequiredNonalphanumericCharacters and minRequiredPasswordLength attributes but other than this, the readme gives no specifics of how to do this.  Below is an updated membership section containing the modified values:

< xml version=1.0?>
<configuration xmlns=http://schemas.microsoft.com/.NetConfiguration/v2.0>
<connectionStrings>
<add name=Personal connectionString=Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Personal.mdf providerName=System.Data.SqlClient/>
<remove name=LocalSqlServer/>
<add name=LocalSqlServer connectionString=Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf/>
connectionStrings>
<system.web>

PAN>

<membership defaultProvider=AspNetSqlProvider>
<providers>
<add name=AspNetSqlProvider
type=System.Web.Security.SqlMembershipProvider
connectionStringName=LocalSqlServer SPAN>”
minRequiredNonalphanumericCharacters=0
minRequiredPasswordLength=6 />
providers>
membership>
system.web>
configuration>

Notice that the connection string referenced in the AspNetSqlProvider membership provider must be declared within the connectionStrings element.


 

IntelliTect Corporation
3024 S. Bannen Ct.
Spokane Valley, WA  99037

Phone: (509) 720-8842
Email: info@intelliTect.com

  COPYRIGHT © 2010 INTELLITECT. ALL RIGHTS RESERVED.