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 })); } }
public ActionResult GetNewPassword(string logonId, string password) { ApplicationUserServices.UserpasswordUpdate(logonId, password); return(RedirectToAction("Index", "Home")); }