CyManager/UpdatePwd.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using BLL;
namespace CyManager
{
    public partial class UpdatePwd : Form
    {
      
        public string uName;
        public UpdatePwd(string uname)
        {
            InitializeComponent();
            txtoldpwd.Focus();
            uName = uname;
        }

       
        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {


            DataSet ds = BLLUserss.JudgePwdOk(uName);
            string oldPwd = ds.Tables[0].Rows[0][0].ToString();
            string a = Common.StrHelper.EncryptToMD5(txtoldpwd.Text);
            //if (txtoldpwd.Text == "" || txtnewpwd.Text == "" || txtreplaypwd.Text == "")
            //{
            //    MessageBoxNew.Show("密码不能为空", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            //    if (oldPwd == txtoldpwd.Text && txtnewpwd.Text == txtreplaypwd.Text)
            //    {
            //        BLLUserss.ChangePwd(uName, txtoldpwd.Text.Trim(), txtnewpwd.Text.Trim());
            //        MessageBoxNew.Show("密码修改成功,请重新登录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            //    }
            //    else
            //    {
            //        MessageBoxNew.Show("两次输入密码不一样", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            //    }

            //}
            if (txtoldpwd.Text != "" && txtnewpwd.Text != "" && txtreplaypwd.Text != "")
            {
                if (oldPwd != a)
                {
                    MessageBoxNew.Show("原密码输入错误!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                    return;
                }
                else if (txtnewpwd.Text != txtreplaypwd.Text)
                {
                    MessageBoxNew.Show("新密码两次输入不一致", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                    return;
                }
                else
                {
                    BLLUserss.ChangePwd(uName, txtoldpwd.Text.Trim(), txtnewpwd.Text.Trim());
后面还有 23 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。