|
Subject:
|
Web Site Administration Tool not accepting data
|
|
Posted By:
|
marblekid
|
Post Date:
|
3/21/2006 11:15:52 PM
|
I am working on the examples in the book and have just created my first login page. While in the Web Site Administration Tool, I was trying to create a user. The tool will not accept any password, it keeps telling me my passwords are the wrong type/size by kicking back the data and saying "Password length minimum: 7. Non-alphanumeric characters required: 1."
I used this data:
Administrator abcdefg12 abcdefg12 bgracia1@bellsouth.net What do i like to drink coke
What gives. I have tried different passwords and lengths, but no matter what I do, the system keeps saying "Password length minimum: 7. Non-alphanumeric characters required: 1."
I cannot get past this example to complete the lesson. Any help would be appreciated.
Thanks, Brian G.
|
|
Reply By:
|
Imar
|
Reply Date:
|
3/22/2006 1:58:00 AM
|
You need to use non alphanumeric characters. So, a password like this should work:
abcd&%#$YUF
You can configure these settings in the configuration file for your site, provided you have any <membership> elements in there.
HtH,
Imar --------------------------------------- Imar Spaanjaars Everyone is unique, except for me.
|
|
Reply By:
|
ohenrikh
|
Reply Date:
|
3/26/2006 1:59:23 PM
|
I like too allow simpler passwords How do I configure to allow simpler passwords
Henrik
|
|
Reply By:
|
dipakmishra
|
Reply Date:
|
4/2/2006 3:19:37 AM
|
even i am facing similar trouble........how can this be solved i dont have mebership settings in web.config...sbdy told me to change these in machine.config still no result............there must be some soln to have any character as password rt now its accepting only non alphanumeric characters plz help or as i am wrkng on a project with login control....... thanks in advance
|
|
Reply By:
|
Imar
|
Reply Date:
|
4/2/2006 4:04:07 AM
|
Hi there,
You need to "delete", and then add the proper membership information again to the web.config file for your application. Add the following to the <system.web> node in your web.config file:<membership>
<providers>
<clear/>
<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="/"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"
/>
</providers>
</membership> Basically, this removes the entire AspNetSqlMembershipProvider from the configuration hierarchy, and then adds it again. This allows you to override the individual settings, like minRequiredPasswordLength and minRequiredNonalphanumericCharacters.
Hope this helps,
Imar --------------------------------------- Imar Spaanjaars Everyone is unique, except for me. Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|
|
Reply By:
|
Deano252
|
Reply Date:
|
4/4/2006 5:00:28 PM
|
looks like Microsofts new "secure by Default" policy strikes again. Is it just me or does it seem like although Visual Studio 2005 put in a lot of cool wizzards and drag and drop functionality the time that we nomally spend typing that code is now spent typing code to unlock various things that would normally be unlocked anyways..
ugggghhhh
Dean Forant
Programmer Delta Mechanical Seals 44 Probber Lane Fall River, MA. 02720 (508)324-4032 Ext 118
|
|
Reply By:
|
Deano252
|
Reply Date:
|
4/4/2006 7:32:31 PM
|
one quick question,
I noticed you have a lot of settings there are they all required to be type in again if it or if they are left blank they will stay at the default.
for example. and possibly to clearify. you have the type set to set the culture setting to Normal and PublicKeyToken to a long value (which i'll never remember). Are these required. becuase I'll be doing several projects and I really don;t want to type all this in each time i start a new project in my web.config file.
thanks
Dean Forant
Programmer Delta Mechanical Seals 44 Probber Lane Fall River, MA. 02720 (508)324-4032 Ext 118
|
|
Reply By:
|
Imar
|
Reply Date:
|
4/5/2006 4:45:47 PM
|
It's just a copy of the default settings in the machine.config file. So, you don't have to remember much, just copy it.
I think it's an either / or situation. You either remove the previous setting and create your own, supplying all settings, or you use the default setting. I don't think there is a way to override just a few settings, without changing them in machine.config which isn't a very good idea.
Did you manage to get it to work?
Imar --------------------------------------- Imar Spaanjaars Everyone is unique, except for me. Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|