Beispiel #1
0
        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
            {
                RenshiService.renshiSoapClient renshiService = new RenshiService.renshiSoapClient();
                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));
                }
            }
        }
Beispiel #2
0
        public ActionResult Login(FormCollection collection)
        {
            string id  = Request.QueryString["id"];
            string pwd = collection["password"];

            RenshiService.renshiSoapClient renshiService = new RenshiService.renshiSoapClient();
            bool bl = renshiService.UserCheck(id, pwd);

            if (bl == true)
            {
                return(Redirect("~/renshi/gongzi?id=" + id));
            }
            else
            {
                return(View(0));
            }
        }