Exemplo n.º 1
0
        public ActionResult Password()
        {
            if (Session["username"] == null || Session["userlevel"].ToString() != "clientele")
            {
                return(this.RedirectToAction("ClientLogout", "Account"));
            }
            var model = new agskeys.Models.ChangePassword();

            return(PartialView(model));
        }
        //public JsonResult passwordmatch(string password)
        //{

        //    string username = Session["username"].ToString();

        //    var admin_table = ags.admin_table.Where(x => x.username.ToString() == username).FirstOrDefault();


        //    bool result = PasswordStorage.VerifyPassword(password, admin_table.password);
        //    if (result)
        //    {
        //        return Json(true, JsonRequestBehavior.AllowGet);
        //    }
        //    else
        //    {
        //        return Json("Sorry, this password is not correct", JsonRequestBehavior.AllowGet);
        //    }



        //}



        public ActionResult Password()
        {
            if (Session["username"] == null && Session["userid"] == null && Session["userlevel"].ToString() != "sales_executive")
            {
                return(this.RedirectToAction("MobileLogout", "Account"));
            }
            var model = new agskeys.Models.ChangePassword();

            return(PartialView("~/Views/MobileSalesExecutive/MobileSalesExecutive/Password.cshtml", model));
        }
Exemplo n.º 3
0
        //public JsonResult passwordmatch(string password)
        //{

        //    string username = Session["username"].ToString();

        //    var admin_table = ags.admin_table.Where(x => x.username.ToString() == username).FirstOrDefault();


        //    bool result = PasswordStorage.VerifyPassword(password, admin_table.password);
        //    if (result)
        //    {
        //        return Json(true, JsonRequestBehavior.AllowGet);
        //    }
        //    else
        //    {
        //        return Json("Sorry, this password is not correct", JsonRequestBehavior.AllowGet);
        //    }



        //}



        public ActionResult Password()
        {
            if (Session["username"] == null && Session["userid"] == null)
            {
                return(this.RedirectToAction("Logout", "Account"));
            }
            var model = new agskeys.Models.ChangePassword();

            return(PartialView(model));
        }
Exemplo n.º 4
0
        public ActionResult Password()
        {
            if (Session["username"] == null && Session["userid"] == null)
            {
                return(this.RedirectToAction("MobileLogout", "Account"));
            }
            var model = new agskeys.Models.ChangePassword();

            return(PartialView("~/Views/MobileManager/MobileManager/Password.cshtml", model));
        }