Hi,
There are 4 columns in Sql DB Username varchar(20),Password varchar(20),NoOfFailedAttempts tinyint,Islocked bit not null default 0.When the User enters his credentials i need to verify the credentials in the DB and if the credentials exists the user has to login.If the Username and Pwd are not matching then the NoofFailedAttempts has to be updated and if it reaches
3 Islocked column has to be updated to
1 .
At the same time in the front end i need to show the user the count of login attempts failed.Suppose if the User successfully logged in the 3 rd attempt again the NoofFailedAttempts column has to be set to 0.
Can any one please provide a stored procedure for the above requirement.