i have a user table in the SQL Server in which the fields are:
UserID --> Int,
Username --> Varchar(40),
Password --> Varchar(50),
UserType --> Varchar(10),
IsSuperUser --> Bool,
EmailAddress --> Varchar(255)
when a user signin in his account there i was checking failure attempts for three times. But the user is a IsSuperUser then he can signin several times otherwise the user gets the alert message for first, second and third attempts and later on the user will be locked. Now the IsSuperUser handles and unlocks the locked user. how can i achieve this please anybody help me
What I have tried:
if (ObjUser.IsSuperUser)
Response.Redirect("~/Signin.aspx", false);
else
Reaming users count code here...
Here ObjUser is business class object having property IsSuperUser get and set;
If i enter username capital letters then the user is not considering the user as IsSuperUser. For this i have i have converted to lower but no chance how can i achieve this