Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unlocking asp.net membership user

I am using asp.net membership in my application. I have set maxInvalidPasswordAttempts="5" in web.config. User is locked out after 5 attempts. When does locked user get unlocked. Do I need to create a page to unlock users or it is done automatically after some hours/days ?

Please suggest.

like image 842
DotnetSparrow Avatar asked Mar 02 '12 10:03

DotnetSparrow


2 Answers

By default, you'll need to create something to unlock the user. There's no automatic mechanism that unlocks users after a period of time.

like image 145
Rhapsody Avatar answered Nov 15 '22 12:11

Rhapsody


I found the easiest, "less pain later" ways was to create a custom Membership provider that implements some sort of auto-unlock behavior. With this method, you're also able to provide a way for the user to configure the timeout period via the web.config file.

Stefan Schackow has an excellent tutorial available.

like image 25
Matt Hanson Avatar answered Nov 15 '22 11:11

Matt Hanson