Hi all,
I want to do a login page.Suppose in user name and password textboxs i provide wrong information three times,then after that i will provide the correct information it will not accept it for the same day when i login.
Thanks
In correct Login three times after that correct login will not accept the same day
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Satyapriya NayakRank #47 · 31.5K reputationPosted Jun 21, 2010, 11:18 PM EDT
Marimuthu ArigovindasamyRank #5,893 · 283 reputationPosted Jun 22, 2010, 12:24 AM EDT
if(check the username exists)
begin
if(InvalidAttempts for that user is 3)
begin
return "You account is locked"
end
else
begin
if(check the password is correct, if it is incorrect)
begin
Increment the table column InvliadAttempt value..
return "Invalid username or password"
end
else
begin
return "Success"
end
end
end
else
begin
return "invalid username"
end