bug
lu
6 天以前 ba0c935cafc358cd8dc85b002ce8befba22c04a1
DevApp/Gs.DevApp/DevFrm/User/UserSetPwd.cs
@@ -1,8 +1,8 @@
using System;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors;
using Gs.DevApp.ToolBox;
using Newtonsoft.Json;
using System;
using System.Windows.Forms;
namespace Gs.DevApp.DevFrm.User
{
@@ -22,29 +22,28 @@
        {
            if (string.IsNullOrEmpty(txtNewPwd.Text.Trim()))
            {
                MsgHelper.Warning("新密码不能为空!");
                MsgHelper.ShowError("新密码不能为空!");
                txtNewPwd.Focus();
                return;
            }
            if (string.IsNullOrEmpty(txtNewPwd2.Text.Trim()))
            {
                MsgHelper.Warning("密码不能为空!");
                MsgHelper.ShowError("密码不能为空!");
                txtNewPwd2.Focus();
                return;
            }
            if (txtNewPwd.Text != txtNewPwd2.Text)
            {
                MsgHelper.Warning("你的两次密码不一致!");
                MsgHelper.ShowError("你的两次密码不一致!");
                txtNewPwd2.Focus();
                return;
            }
            var _obj = new
            {
                edtUserGuid = userGuid,
                userGuid,
                userGuid = userGuid,
                newPass = txtNewPwd.Text.Trim()
            };
            try
@@ -66,7 +65,7 @@
            catch (Exception ex)
            {
                DialogResult = DialogResult.Cancel;
                MsgHelper.Warning("提示:" + ex.Message);
                MsgHelper.ShowError("提示:" + ex.Message);
            }
        }