Class/Login.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Data;
namespace Vender
{
class Admin
{
private string Username;
private string Password;
private string tableName;
private string rowPassword;
private string rowUsername;
private string auThentificationState;
public Admin(string username,string password,string table,string rowusername,string rowpassword)
{
Username = username;
Password = password;
tableName = table;
rowUsername = rowusername;
rowPassword = rowpassword;
}
DBConnect dBCon = new DBConnect();
public void Login()
{
string username = this.Username;
string password = this.Password;
string table = this.tableName;
string rowusername = this.rowUsername;
string rowpassword = this.rowPassword;
SqlDataAdapter sda = new SqlDataAdapter("SELECT COUNT(*) FROM "+table+" WHERE "+rowusername+"='" + username + "' AND "+rowpassword+"='" + password + "'", dBCon.GetCon());
DataTable dt = new DataTable();
sda.Fill(dt);
if (dt.Rows[0][0].ToString() == "1")
{
auThentificationState = "success";
}
else
{
auThentificationState = "failed";
}
}
public string GetState()
{
return auThentificationState;
}
}
后面还有 1 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。