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..
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Brijendra GautamRank #1,900 · 778 reputationPosted Mar 24, 2014, 8:07 PM EDT
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.