CreateProject/resetPwdSend.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CreateCommon;
using System.Data;
namespace CreateProject
{
    public partial class resetPwdSend : System.Web.UI.Page
    {
        CreateBll.UserListBll bll = new CreateBll.UserListBll();
        CreateModel.UserListModel model = new CreateModel.UserListModel();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                //取出参数
                string email = this.GetRequestStr("email");
                string Keys = this.GetRequestStr("Keys");
                //进行获取进行修改密码

                DataRow dr = bll.GetDataRow(email, Keys);
                if (dr != null)
                {
                    this.username.InnerHtml = dr["userName"].ToStr();
                }
            }
        }

        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            string userpwd = Security.Encode(this.GetRequestStr("pwd"));
            string email = this.GetRequestStr("email");

            int line = bll.UpdatePwd(userpwd, email);
            if (line > 0)
            {
                lbinfo.Text = "密码修改成功!";
                return;
            }
            else
            {
                lbinfo.Text = "密码修改失败,请确认该账户没停用!";
                return;
            }
        }
    }
}

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

AI 解读 AI

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

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