Beispiel #1
0
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="NewPwd">新密码</param>
        /// <param name="netLogin">界面登录字符串</param>
        /// <param name="errMsg"></param>
        /// <returns></returns>
        public static int ChangePassword(string NewPwd, ref UFSoft.U8.Framework.Login.UI.clsLogin netLogin, out string errMsg)
        {
            errMsg = string.Empty;

            try
            {
                if (netLogin == null)
                {
                    errMsg = "登录字符串丢失!";
                    return(-1);
                }

                netLogin.ModifyUserPassword(NewPwd);
            }
            catch (Exception ex)
            {
                errMsg = ex.Message;
                return(-2);
            }
            return(0);
        }