user/modify.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class user_modify : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
//修改密码
if (Session.Contents["validate"] == null)
Server.Transfer("getpass.aspx");
else
{
string username = Session.Contents["validate"].ToString();
Regular regex = new Regular();
string pw1 = t_pw1.Text;
string pw2 = t_pw2.Text;
if (pw1 == pw2 && regex.IsPassWord(pw1))
{
Md5Pw md5 = new Md5Pw();
SqlStore sql = new SqlStore();
if (sql.GetPass2(username, md5.Md5(pw1)))
{
Session.Contents["validate"] = null;
Session.Add("username", username);
Response.Write("<script type='text/javascript'>alert('密码已经修改!');location='manage.aspx';</script>");
}
else
Response.Write("<script type='text/javascript'>alert('修改失败,请重新尝试!');location='getpass.aspx';</script>");
}
}
}
else
{
//确认验证码是否有效
if (Request.QueryString["username"] != null && Request.QueryString["validate"] != null)
{
Regular regex = new Regular();
string username = Request.QueryString["username"].ToString();
string identifyingCode = Request.QueryString["validate"].ToString();
if (regex.IsUserName(username) && identifyingCode.Length == 64)
{
Md5Pw md5 = new Md5Pw();
SqlStore sql = new SqlStore();
string validate = md5.Md5(identifyingCode.Substring(0, 32)) + identifyingCode.Substring(13, 38) + md5.Md5(identifyingCode.Substring(32, 32));
if (sql.GetPass1(username, validate))
{
Session.Add("validate", username);
Session.Timeout = 5;
}
else
后面还有 8 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
