Пример #1
0
        /// <summary>
        /// 修改系统用户密码
        /// </summary>
        /// <param name="condtion"></param>
        /// <returns></returns>
        internal static ReplayBase ChangeSysUserPwd(RequestChangeUserPwdModel condtion)
        {
            ReplayBase result = new ReplayBase();

            try
            {
                result = BaseSysTemDataBaseManager.SysChangeSysUserPwd(condtion);
            }
            catch (Exception e)
            {
                result.ReturnCode    = EnumErrorCode.ServiceError;
                result.ReturnMessage = "服务器错误 500";
                SysSaveErrorLogMsg(e.ToString(), condtion);
            }
            return(result);
        }
Пример #2
0
        public ReplayBase ChangeSysUserPwd(RequestChangeUserPwdModel condtion)
        {
            condtion.UserId = User.Identity.Name;
            ReplayBase result = SysManagerService.ChangeSysUserPwd(condtion);

            if (result.ReturnCode == EnumErrorCode.Success)
            {
                SysUserLogModel log = new SysUserLogModel()
                {
                    Describe  = "用户修改登陆密码",
                    SysUserId = User.Identity.Name
                };
                SysManagerService.CreateSysUserLog(log);
            }

            return(result);
        }