public ActionResult Change_pwd(FormCollection collection) { string id = Request.QueryString["id"]; string old = collection["old"]; string pwd = collection["password"]; string pwd1 = collection["password1"]; if (pwd != pwd1) { return(View(2)); } else { RenshiServiceSoapClient renshiService = new RenshiServiceSoapClient(); bool bl = renshiService.UserCheck(id, old); if (bl == true) { bl = false; bl = renshiService.Change_pwd(id, pwd); if (bl == true) { return(View(1)); } else { return(View(0)); } } else { return(View(3)); } } }
public ActionResult Login(FormCollection collection) { string id = Request.QueryString["id"]; string pwd = collection["password"]; RenshiServiceSoapClient renshiService = new RenshiServiceSoapClient(); bool bl = renshiService.UserCheck(id, pwd); if (bl == true) { return(Redirect("~/renshi/gongzi?id=" + id)); } else { return(View(0)); } }