PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Asp.net Membership Lock Out

 
 
rmgalante@galaware.com
Guest
Posts: n/a
 
      3rd Jan 2008
I am using the standard asp.net membership provider. I have users who
forget their password. They attempt to login 5 times and they get
locked out. The membership configuration in web.config follows.

<add connectionStringName="SomeDB" enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="false"
applicationName="SomeApp" requiresUniqueEmail="true"
passwordFormat="Hashed" maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10" passwordStrengthRegularExpression=""
minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0"
name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"/>

Once the user is locked out, the reset password doesn't work. I have
to unlock the user before it will send a new password. Is this the
correct operation of this feature? Do I have to manually unlock these
users before they can retrieve a new password?

Thanks.

Rob
 
Reply With Quote
 
 
 
 
Phil H
Guest
Posts: n/a
 
      3rd Jan 2008
On 3 Jan, 18:30, rmgala...@galaware.com wrote:
> I am using the standard asp.net membership provider. I have users who
> forget their password. They attempt to login 5 times and they get
> locked out. The membership configuration in web.config follows.
>
> <add connectionStringName="SomeDB" enablePasswordRetrieval="false"
> enablePasswordReset="true" requiresQuestionAndAnswer="false"
> applicationName="SomeApp" requiresUniqueEmail="true"
> passwordFormat="Hashed" maxInvalidPasswordAttempts="5"
> passwordAttemptWindow="10" passwordStrengthRegularExpression=""
> minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0"
> name="AspNetSqlMembershipProvider"
> type="System.Web.Security.SqlMembershipProvider"/>
>
> Once the user is locked out, the reset password doesn't work. I have
> to unlock the user before it will send a new password. Is this the
> correct operation of this feature? Do I have to manually unlock these
> users before they can retrieve a new password?
>
> Thanks.
>
> Rob


Hi

The help files for the Membership class say this:

"If the number of invalid passwords or password answers entered for a
membership user is greater than or equal to the value of the
MaxInvalidPasswordAttempts property within the number of minutes
specified by the PasswordAttemptWindow property, then the user is
locked out of the Web site by setting the IsLockedOut property to true
until the user is unlocked by a call to the UnlockUser method.

If a valid password or password answer is supplied before the value of
the MaxInvalidPasswordAttempts property is reached, the counter that
tracks the number of invalid attempts is set to zero."

My interpretation of this is that a lock-out status cannot be undone
with a belated request for help by the user.

If I'm right then the only way round it is to create a custom process
for password retrieval that will execute the UnLockuser method once
the user has been verified as genuine (perhaps by e-mail).
 
Reply With Quote
 
rmgalante@galaware.com
Guest
Posts: n/a
 
      8th Jan 2008
On Jan 3, 5:33*pm, Phil H <goo...@philphall.me.uk> wrote:
> On 3 Jan, 18:30, rmgala...@galaware.com wrote:
>
>
>
>
>
> > I am using the standard asp.net membership provider. I have users who
> > forget their password. They attempt to login 5 times and they get
> > locked out. The membership configuration in web.config follows.

>
> > <add connectionStringName="SomeDB" enablePasswordRetrieval="false"
> > enablePasswordReset="true" requiresQuestionAndAnswer="false"
> > applicationName="SomeApp" requiresUniqueEmail="true"
> > passwordFormat="Hashed" maxInvalidPasswordAttempts="5"
> > passwordAttemptWindow="10" passwordStrengthRegularExpression=""
> > minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0"
> > name="AspNetSqlMembershipProvider"
> > type="System.Web.Security.SqlMembershipProvider"/>

>
> > Once the user is locked out, the reset password doesn't work. I have
> > to unlock the user before it will send a new password. Is this the
> > correct operation of this feature? Do I have to manually unlock these
> > users before they can retrieve a new password?

>
> > Thanks.

>
> > Rob

>
> Hi
>
> The help files for the Membership class say this:
>
> "If the number of invalid passwords or password answers entered for a
> membership user is greater than or equal to the value of the
> MaxInvalidPasswordAttempts property within the number of minutes
> specified by the PasswordAttemptWindow property, then the user is
> locked out of the Web site by setting the IsLockedOut property to true
> until the user is unlocked by a call to the UnlockUser method.
>
> If a valid password or password answer is supplied before the value of
> the MaxInvalidPasswordAttempts property is reached, the counter that
> tracks the number of invalid attempts is set to zero."
>
> My interpretation of this is that a lock-out status cannot be undone
> with a belated request for help by the user.
>
> If I'm right then the only way round it is to create a custom process
> for password retrieval that will execute the UnLockuser method once
> the user has been verified as genuine (perhaps by e-mail).- Hide quoted text -
>
> - Show quoted text -


My solution is to unlock the user in the PasswordRecovery event,
VerifyingUser.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership permissions after publishing an ASP.NET Membership site. Tino Donderwinkel Microsoft ASP .NET 2 18th Jun 2008 09:16 AM
local group membership and domain group membership --== Alain ==-- Windows XP General 2 19th Jan 2007 02:14 PM
Scroll Lock, Num Lock and Caps Lock icons. Mel Bourne Windows XP General 3 19th Jan 2007 07:02 AM
CAPS LOCK SCROLL LOCK NUM LOCK Flashing JJoe Microsoft Windows 2000 Windows Updates 3 21st Mar 2006 01:14 PM
[Freeware] Computer Lock (C'Lock) Basic Edition for Microsoft Windows XP v2.24 Mel Freeware 2 4th Jun 2005 04:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:35 AM.