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