how to lock the user for 24 hrs if he entered wrong password
How to lock the user for some hours if he entered the wrong password for more than 3 times..
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Brijendra GautamPosted Mar 25, 2014, 12:07 AM
And every time update the information in this field whenever user attempt a wrong password.
Put a condition
if(WrongAttemptCount ==3 && (LastWrongPwdTime-Today.Now).Hours < 24)
//Display Account locked
Hope this is what you are looking for.
Note:This is just a psuedo-code.