This usually will depend on what type of identity / authentication / authorization mechanisms your application is using. For something like the older ASP.NET Membership, you would just get your user and explicitly unlock them via the
UnlockUser() method:
var user = Membership.GetUser(userName);
user.UnlockUser();
Likewise, you could open up SQL Server and access your Membership database and update the FailedLoginPasswordAttemptCount to 0 and set IsLockedOut to 0. If you are using a different provider, then these will obviously be different.
Member
282 Points
298 Posts
Unlock user account
Jan 21, 2020 04:18 PM|rkrex|LINK
Hi Friends,
If a use has been locked out of their account, how do I unlock it.
All-Star
114593 Points
18503 Posts
MVP
Re: Unlock user account
Jan 21, 2020 04:27 PM|Rion Williams|LINK
This usually will depend on what type of identity / authentication / authorization mechanisms your application is using. For something like the older ASP.NET Membership, you would just get your user and explicitly unlock them via the UnlockUser() method:
Likewise, you could open up SQL Server and access your Membership database and update the FailedLoginPasswordAttemptCount to 0 and set IsLockedOut to 0. If you are using a different provider, then these will obviously be different.