views:

34

answers:

3

i'm new and using the login control with the ASPNETDB visual studio generated user database

i set a maximum bad password count of 5 in web.config and tested to the point that an account was locked out. i am however unable to figure out how to unlock the account now.

this problem is on my remotely hosted site, so this isn't something i can do with the visual studio asp.net configuration tool

some c# code i could run in the .cs page_load, that would let me input the username and have it unlocked would be great. then i could make a form to do it later when i need to easily.

thanks in advance for any help.

A: 

Have you tried changing the Web.config to extend the lockout time to "more attempts" or something like that? Maybe it will let you in that way.

I wouldn't know any CSharp code for you, but a tool that I use is the Quality Data membership Manager Control where I can manage membership (including lock status) through a web form.

While this will not help you right now, it should help you in the future. Also, once you can login (after your lockout expires) again, I would suggest removing the lockout info from the Web.config until you're ready to go live. Extensive testing of your application is bound to get you locked out again and again.

rockinthesixstring
A: 

This tutorial might help, you might have to go through the series quickly:

Unlocking and Approving User Accounts

Asad Butt
A: 

Hey,

Manually, in the database, go to the aspnet_membership table, set FailedLoginPasswordAttemptCount (something similarly named) to zero and set IsLockedOut to 0 (false).

We created a custom security screen to manage these in several of my apps, or you can use a component like mentioned in the other posts.

HTH.

Brian