コード例 #1
0
 public object PostChangePayPwd(LoginModPwdModel value)
 {
     if (!string.IsNullOrEmpty(value.Certificate))
     {
         return(ChangePayPwdByCertificate(value.Certificate, value.Password));
     }
     return(ChangePayPwdByOldPassword(value.OldPassword, value.Password));
 }
コード例 #2
0
        public JsonResult <Result <int> > PostChangePassword(LoginModPwdModel value)
        {
            if (!string.IsNullOrEmpty(value.Certificate))
            {
                return(ChangePassowrdByCertificate(value.Certificate, value.Password));
            }

            return(ChangePasswordByOldPassword(value.OldPassword, value.Password));
        }
コード例 #3
0
 /// <summary>
 /// 设置密码
 /// </summary>
 /// <param name="pwd"></param>
 /// <returns></returns>
 public object PostSetPayPwd(LoginModPwdModel model)
 {
     CheckUserLogin();
     MemberCapitalApplication.SetPayPwd(CurrentUser.Id, model.Password);
     return(SuccessResult("设置成功"));
 }