1、
js
var postData = {};postData["userPassword"] = $("#F_NewPassword").val();
postData["keyValue"] = UserId;
$.submitForm({
url: "/SystemManage/User/SubmitRevisePassword",
param: postData,
success: function () {
$.loading(false)
}
})
cs
[HttpPost]
[HandlerAjaxOnly]
[HandlerAuthorize]
[ValidateAntiForgeryToken]
public ActionResult SubmitRevisePassword(string userPassword, string keyValue)
{
userLogOnApp.RevisePassword(userPassword, keyValue);
return Success("重置密碼成功。");
}