Backup/AjaxLogin.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Web;
using System.Web.UI;
namespace Whir.Login
{
public partial class AjaxLogin : Page
{
protected void Page_Load(object sender, EventArgs e)
{
string result = ProcessLogin();
Response.Clear();
Response.Write(result);
Response.End();
}
// 下载于www.51aspx.com
private string ProcessLogin()
{
try
{
string userName = HttpContext.Current.Request.Form["userName"];
string password = HttpContext.Current.Request.Form["password"];
if (string.IsNullOrEmpty(userName))
{
return "{status:'inputUserName'}"; //请输入用户名
}
if (string.IsNullOrEmpty(password))
{
return "{status:'inputPassword'}"; //请填写登录密码
}
if (password.Length < 6 || password.Length > 32)
{
return "{status:'passwordLength'}"; //密码应在6-32位字符内
}
//var user = UserService.GetUserByName(userName);
//if (user == null)
//{
// return "{status:'inviladUserName'}"; //帐号不存在
//}
//if (user.IsLocked)
//{
// return "{status:'userLocked'}"; //帐号锁定中,暂时无法登录
//}
//if (user.Password.ToLower() != password.ToMd5().ToLower())
//{
// return "{accountNotMatch:'ok'}"; //账号密码不匹配
//}
//其他操作:
//写入客户端cookie
//登录日志
return "{status:'ok'}"; //登录成功
}
catch (Exception ex)
{
return "{status:'serverdown'}"; //服务器繁忙,请稍后再试
}
}
后面还有 2 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。