private void DoReLogin(ref string s, ref int count) { Account.Logout(); if (DateTime.Now.Hour.IsBetween(2, 7)) { ThreadSleep(900f, 1200f); } else { ThreadSleep(1f, 2f); } s = SendRequest(ActionTypes.LoginToSF); LoginArea.UpdateLoginData(s, Account); ThreadSleep(60f * 5f, 60f * 6f); count -= 1; }
public ActionResult Validate(LoginArea log) { // we use select querry for selecting data from databse to see that weather infor mation that is provided by the user is correct //or not this is secure way Connection obj = new Connection(); String query = "select * from LoginData where Sname='" + log.AdminUserName + "' and Spassword='******'"; DataTable tbl = new DataTable(); tbl = obj.Srch(query); // this is viewing area of loging if the user has added the right information it will open the working are and if the useer has not //enterd right information it will ask to enter the new information . if (tbl.Rows.Count > 0) { return(View("WorkingArea")); } else { return(View("Invalid")); } }