コード例 #1
0
        public JsonResult PasswordUpdate(string password)
        {
            try
            {
                ApplicationUserServices.UserpasswordUpdate(Session["sIDNo"].ToString(), password);

                return(Json(new { successMessage = "密碼已更新!" }));
            }
            catch (Exception ex)
            {
                return(Json(new { message = ex.Message, error = false }));
            }
        }
コード例 #2
0
        public ActionResult GetNewPassword(string logonId, string password)
        {
            ApplicationUserServices.UserpasswordUpdate(logonId, password);

            return(RedirectToAction("Index", "Home"));
        }