WELOA.Web/share/default_login0.aspx.cs

(开头部分) 7KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using WELOA.Model;
using LSBLL;
using WELOA.Common;
using System.Web.Security;

namespace Web.share
{
    public partial class default_login0 : System.Web.UI.Page
    {
        

        private DataSet ds = new DataSet();
        private DateSetInformation dsinfo = new DateSetInformation();
        
        private LS_Login_Notice noticeBLL = new LS_Login_Notice();
        private WELOAInfoParameter OA01 = new WELOAInfoParameter();
      
        private LS_Staff staffBLL = new LS_Staff();
        private LS_System systemBLL = new LS_System();
  

        
        protected void imgLogin_Click(object sender, ImageClickEventArgs e)
        {
            string str3 = this.tbValidate.Text.Trim();
            if (this.tbValidate.Visible)
            {
                if (this.Session["CheckCode"] != null)
                {
                    if (str3 != this.Session["CheckCode"].ToString())
                    {
                        this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('验证码输入不正确')</script>");
                        this.tbPassword.Text = "";
                        this.tbValidate.Text = "";
                        this.Page.SetFocus(this.tbPassword);
                    }
                }
                else
                {
                    base.Response.Write("<script language=javascript >window.top.location.href='../default.aspx'</script>");
                }
            }
            string userName = this.tbUserName.Text.Trim();
            string password = FormsAuthentication.HashPasswordForStoringInConfigFile(FormsAuthentication.HashPasswordForStoringInConfigFile(this.tbPassword.Text.Trim(), "MD5"), "MD5");
            this.Session.Remove("CheckCode");
            LoginInformation LoginInformation = this.staffBLL.login(userName, password, base.Request.UserHostAddress.ToString());
            if (LoginInformation.nException > 0)
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常1,请联系管理员处理。')</script>");
            }
            else
            {
                if (LoginInformation.nException == 1)
后面还有 95 行代码,解锁后查看完整代码

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

AI 解读

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

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