Login.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Com;
public partial class Login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
checkuser();
}
private void checkuser()
{
string action = Request["action"];
string userName = "";
string password = "";
string checkCode = "";
string from = "";
switch (action)
{
case "login":
userName = Com.Util.getStringByObject(Request.Form["login_username"]);
password = Com.Util.getStringByObject(Request.Form["login_password"]);
{
if (userName != "" || password != "")
{
from = Com.Util.getStringByObject(Request.QueryString["from"]);
from = from == "" ? "userCenter.aspx" : from;
Bs_User user = new Bs_User();
user.Name = userName;
user.Password = password;
Factory.getUserBllInstance().login(user);
if (CurInfo.CurUser != null)
{
DiscuzIntegration.Integration.Login(userName, password);
if (from != "")
{
Response.Redirect(from);
CSA.HC.Common.AlertAndRedirect("登录成功", from);
}
else
{
Response.Redirect(from);
CSA.HC.Common.AlertAndRedirect("登录成功", "userCenter.aspx");
}
}
else
{
CSA.HC.Common.AlertAndRedirect("登录失败!", "login.aspx?from=" + from);
}
}
后面还有 51 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
