WebSiteShop/user/login.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 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;

using MyShop.BLL;
using MyShop.Model;
using MyShop.Common;
using MyShop.Enumerations;
using Microsoft.VisualBasic;


public partial class user_login : BasePage
{

    protected void Page_Load(object sender, EventArgs e)
    {
        if (UserIsLogin)
        {
            Response.Redirect(ReturnUrl);
        }
        if (!IsPostBack)
        {
            btnConfirm.Src = BasePage.DefaultApp_ThemesFile + "images/login_4.gif";
            txtUserName.Attributes.Add(" onfocusout", "document.getElementById('" + txtPassword.ClientID + "').select()");
            txtVerifyCode.Attributes.Add(" onfocusout", "document.getElementById('" + txtUserName.ClientID + "').select()");

        }
    }

    protected void btnConfirm_ServerClick(object sender, ImageClickEventArgs e)
    {
        string userName = txtUserName.Value.Trim();
        string password = txtPassword.Value.Trim();
        string msg = "";
        string verifyCode = txtVerifyCode.Value.Trim();

        if (!verifyCode.Equals(Session[SiteCachePrefix + "VerifyCode"].ToString()))
        {
            msg = "验证码输入错误";
            txtUserName.Focus();
            MessageBox.Show(this.Page, msg);
            return;
        }

        if (!DataSecurity.ChkBadChar(userName))
        {

            MyShop.BLL.User user = new User();
            if (user.Exist(userName, password))
            {
                UserInfo model = user.GetModel(userName);
                if (model == null)
                    return;
后面还有 83 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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