Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 20th, 2010, 09:54 AM
Authorized User
 
Join Date: Jul 2009
Posts: 61
Thanks: 15
Thanked 1 Time in 1 Post
Default Password expires?

Hi
I am using roles and membership for a website.
My web.config contains
Code:
<membership>
            <providers>
                <clear/>
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
                  connectionStringName="ChamberofCommerceConnectionString" 
                  enablePasswordRetrieval="false" 
                  enablePasswordReset="true" 
                  requiresQuestionAndAnswer="false" 
                  applicationName="/" 
                  requiresUniqueEmail="false" 
                  passwordFormat="Hashed" 
                  maxInvalidPasswordAttempts="5" 
                  minRequiredPasswordLength="6" 
                  minRequiredNonalphanumericCharacters="0" 
                  passwordAttemptWindow="10" 
                  passwordStrengthRegularExpression=""/>
            </providers>
        </membership>
My problem is that the site went live about a month ago and the users just reported that they cannot login using any user.
Setting up two new users and assigning appropriate roles enabled them to continue.
Do the passwords expire?
Is there a passwordvaliditytime= or something like it.
Preferably I want the passwords to not expire at all.
__________________
Geoff Baldwin
 
Old January 20th, 2010, 10:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Unless something has changes, the password do not expire...

Maybe the accounts are locked??? (because if you fail to get the correct password, membership provider locks them)
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
 
Old January 20th, 2010, 10:20 AM
Authorized User
 
Join Date: Jul 2009
Posts: 61
Thanks: 15
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by gbianchi View Post
Unless something has changes, the password do not expire...

Maybe the accounts are locked??? (because if you fail to get the correct password, membership provider locks them)
Thanks Gonzalo
Do you know how long the lockout lasts? Assuming that it gets freed up eventually!
Is there a way to unlock a pasword?
__________________
Geoff Baldwin
 
Old January 20th, 2010, 10:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

You need to lock them out.. .I remember doing a page to free the look, maybe Imar knows a better way.
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
 
Old January 20th, 2010, 11:19 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Quote:
Originally Posted by SouthendSupporter View Post
Thanks Gonzalo
Do you know how long the lockout lasts? Assuming that it gets freed up eventually!
Is there a way to unlock a pasword?
Password locks do not "free themselves" unless you write custom logic to do that.

Othewrwise, you need to unlock them manually.

There are two ways to do that:

1) Create a page (accessible only to administrators, of course) that lets you unlock users using the Membership API:

MembershipUser user = Membership.GetUser(lockedUserName);
user.UnlockUser();

2) Go directly into the database and change the IsLocked field from True to False.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
The Following User Says Thank You to Lee Dumond For This Useful Post:
SouthendSupporter (January 20th, 2010)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Timeout Expires bob_rainhail SQL Server 2000 18 October 17th, 2006 10:29 AM
Session expires immediately codebuyer Classic ASP Components 6 March 18th, 2005 12:54 PM
Session expires imediately on logging in codebuyer Classic ASP Professional 3 February 24th, 2005 02:37 AM
page expires isheikh BOOK: Beginning ASP 3.0 1 May 31st, 2004 11:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.