Re: 2.0: ASP.NET Configuration
- From: PeterKellner <pkellnernews@xxxxxxxxxxxxxx>
- Date: Tue, 06 Jun 2006 08:19:36 -0700
On Tue, 06 Jun 2006 08:03:43 +0200, R.A.M. <r_ahimsa_m@xxxxxxxxxxxxxx>
wrote:
Hello,
I used ASP.NET Configuration to create a user, but I don't like the
rules for password - "Password length minimum: 7. Non-alphanumeric
characters required: 1."
Can I change them? How?
Thank you very much for your answer(s)
/RAM/
You need to modify your web.config. Here is an example that I use.
(note the minRequiredNonalphanumericCharacters setting)
....
<roleManager enabled="true"/>
<membership>
<providers>
<remove
name="AspNetSqlMembershipProvider"/>
<add
name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider,System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer" enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true"
applicationName="/xxxr" requiresUniqueEmail="false"
minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0"
passwordFormat="Hashed" maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
</providers>
</membership>
</system.web>
Peter Kellner
http://peterkellner.net
.
- References:
- 2.0: ASP.NET Configuration
- From: R . A . M .
- 2.0: ASP.NET Configuration
- Prev by Date: Re: Editable/Uneditable Gridview rows on condition
- Next by Date: Re: Sharing Behind-page-code
- Previous by thread: Re: ASP.NET Configuration
- Next by thread: Change value of DataGrid columns (2)
- Index(es):
Relevant Pages
|