20220726 修改密码策略
This commit is contained in:
@@ -89,6 +89,22 @@ namespace FineUIPro.Web.SysManage
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.txtNewPassword.Text.Length < 8)
|
||||
{
|
||||
Alert.ShowInParent("密码长度至少8位!");
|
||||
return;
|
||||
}
|
||||
if (this.txtNewPassword.Text != this.txtConfirmPassword.Text)
|
||||
{
|
||||
Alert.ShowInParent("确认密码输入不一致!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Funs.IsValIDPassword(this.txtNewPassword.Text))
|
||||
{
|
||||
Alert.ShowInParent("密码必须包含字母、数字、特殊符号!");
|
||||
return;
|
||||
}
|
||||
BLL.UserService.UpdatePassword(user.UserId, this.txtNewPassword.Text);
|
||||
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, "修改密码", string.Empty, BLL.Const.UserMenuId, Const.BtnModify);
|
||||
|
||||
Reference in New Issue
Block a user