1

I have forgot to change "maxInvalidPasswordAttempts" in my web config and it was on 5! Now one of my users get locked. I have change Islocked column to false but it is keeping unlock. Can any body help me how to unlock this user?

Saeid
  • 1,996
  • 4
  • 27
  • 44

2 Answers2

3

You want to update in two columns in Membership table.

IsLockedOut to 0

FailedPasswordAttemptCount to 0

Win
  • 61,100
  • 13
  • 102
  • 181
1

Use the UnlockUser() method in your code.

http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.unlockuser.aspx

Infotekka
  • 10,307
  • 2
  • 20
  • 17