28 lines
908 B
C#
28 lines
908 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text.RegularExpressions;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using ZWL.DBUtility;
|
|
|
|
public partial class rkl : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
string SqlSTr = "select id,username,userpwd,serils,truename from ERPUser";
|
|
DataTable table = DbHelperSQL.GetDataTable(SqlSTr);
|
|
|
|
Regex regex = new Regex(@"^(?![^0-9]+$)(?![^a-zA-Z]+$)[0-9A-Za-z!@#$%^&*]{8,16}$", RegexOptions.IgnoreCase);
|
|
foreach (DataRow r in table.Rows)
|
|
{
|
|
r["userpwd"] = ZWL.Common.DEncrypt.DESEncrypt.Decrypt(r["userpwd"].ToString());
|
|
r["serils"] = regex.IsMatch(r["userpwd"].ToString()) ? "" : "弱爆了";
|
|
}
|
|
|
|
GridView1.DataSource = table;
|
|
GridView1.DataBind();
|
|
}
|
|
} |