Web/ajax/shopAjaxCheck.aspx.cs

(开头部分) 1KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Xml;
using System.Data;

using WMPT.SQLServerDAL;
using WMPT.Model;

public partial class Themes_Default_Ajax_shopAjaxCheck : System.Web.UI.Page
{
    Points dal = new Points();
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Clear();

        string User_Emial = WebUtility.InputText(Request["email"]);
        string name = Server.UrlDecode(WebUtility.InputText(Request["name"]));
        string NewPassword = WebUtility.RandStr(6);         //随机产生6位字符,作为新密码发送至用户注册的邮箱。
        string Password = WebUtility.GetMd5(NewPassword);

        string sql = "email = '" + User_Emial + "' and LoginName = '" + name + "'";
        IList<PointsInfo> list = dal.GetList(1, 1, sql, "unid", 1);
        if (list.Count == 1)
        {
            int id = dal.ResetPassword(list[0].Unid, Password);
            if (id == 1)
            {
                string Title = "尊敬的用户:您好";
                string Body = SectionProxyData.GetSetValue(10);
                string tempbody = Body.Replace("{url}", NewPassword);

                SysMailMessage mail = new SysMailMessage(User_Emial, Title, tempbody);
                bool res = mail.Send();
                if (res == true)
                {
                    Response.Write("1");
                }
                else
                {
                    Response.Write("-2");
                }
            }
            else
            {
                Response.Write("0");
            }
        }
        else
        {
            Response.Write("-1");//用户名不存在.
后面还有 5 行代码,购买后查看完整代码

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

AI 解读 AI

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

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