Пример #1
0
        public ActionResult ChangePwd(FormCollection f)
        {
            ViewData["CurrMenu"] = "�޸�����";
            bizUsers bu = new bizUsers();
            Users modelUser = bu.Get(UserID);

            if (f["PwdOld"] != modelUser.Password)
            {
                ViewData["Msg"] = "���벻��ȷ";
                return View();
            }
            else
            {
                bu.ModPassword(modelUser, f["PwdNew"]);
                ViewData["Msg"] = "�����޸ijɹ�";
                return View();
            }
        }
Пример #2
0
 public ActionResult ChangePwdBBS(FormCollection f)
 {
     bizUsers bu = new bizUsers();
     Users modelUser = bu.Get(UserID);
     if (f["PwdOld"] != modelUser.Password)
     {
         TempData["Msg"] = "���벻��ȷ";
         return Redirect("/bbs/SelfInfoSet.html");
     }
     else
     {
         bu.ModPassword(modelUser, f["PwdNew"]);
         TempData["Msg"] = "�����޸ijɹ�";
         return Redirect("/bbs/SelfInfoSet.html");
     }
 }