BookShop.Web/Manage/Login.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CTL.Common;
namespace BookShop.Web.Manage
{
public partial class Login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Requests.Query("action") == "logout")
{
HttpCookie cookie = Cookie.Get("admin");
Cookie.Remove(cookie);
Response.Redirect("Login.aspx");
}
if (IsPostBack)
{
string name = Requests.Form("userName");
string pwd = Requests.Form("password");
string code = Requests.Form("verifyCode");
if (name.Trim() == "")
{
WebUtility.Alert("请您输入用户名!");
return;
}
if (pwd.Trim() == "")
{
WebUtility.Alert("请您输入密码!");
return;
}
if (code.Trim() == "")
{
WebUtility.Alert("请您输入验证码!");
return;
}
try
{
string checkcode = Utils.GetSession("CheckCode").ToString();
}
catch { }
if (Utils.GetSession("CheckCode").ToString() != code)
{
WebUtility.Alert("验证码错误啦!");
return;
}
else
{
Model.Admin adminInfo = AdminBLL.GetAdminInfoByCondition("AdminName='" + name + "'");
if (adminInfo != null)
后面还有 32 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。