|
@ -36,8 +36,8 @@ namespace SCP.admin |
|
|
if (!IsPostBack) |
|
|
if (!IsPostBack) |
|
|
{ |
|
|
{ |
|
|
LoadData(); |
|
|
LoadData(); |
|
|
tbxPassword.Regex = ScpCache.Config.密码验证格式; |
|
|
//tbxPassword.Regex = ScpCache.Config.密码验证格式;
|
|
|
tbxPassword.RegexMessage = ScpCache.Config.密码验证提示语; |
|
|
//tbxPassword.RegexMessage = ScpCache.Config.密码验证提示语;
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -70,12 +70,12 @@ namespace SCP.admin |
|
|
|
|
|
|
|
|
protected void btnSaveClose_Click(object sender, EventArgs e) |
|
|
protected void btnSaveClose_Click(object sender, EventArgs e) |
|
|
{ |
|
|
{ |
|
|
Regex _regex = new Regex(ScpCache.Config.密码验证格式); |
|
|
//Regex _regex = new Regex(ScpCache.Config.密码验证格式);
|
|
|
if (!_regex.IsMatch(tbxPassword.Text.Trim())) |
|
|
//if (!_regex.IsMatch(tbxPassword.Text.Trim()))
|
|
|
{ |
|
|
//{
|
|
|
Alert.Show(GetResourceKey(ScpCache.Config.密码验证提示语)); |
|
|
// Alert.Show(GetResourceKey(ScpCache.Config.密码验证提示语));
|
|
|
return; |
|
|
// return;
|
|
|
} |
|
|
//}
|
|
|
int id = GetQueryIntValue("id"); |
|
|
int id = GetQueryIntValue("id"); |
|
|
User item = DB.Users.Find(id); |
|
|
User item = DB.Users.Find(id); |
|
|
item.Password = PasswordUtil.CreateDbPassword(tbxPassword.Text.Trim()); |
|
|
item.Password = PasswordUtil.CreateDbPassword(tbxPassword.Text.Trim()); |
|
|