20220726 修改密码策略
This commit is contained in:
@@ -105,7 +105,12 @@
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
BLL.UserService.UpdatePassword(rowID, BLL.Const.Password);
|
||||
var getUser = UserService.GetUserByUserId(rowID);
|
||||
if (getUser != null)
|
||||
{
|
||||
string password = Funs.getInitialPassword(getUser.UnitId, getUser.IdentityCard);
|
||||
BLL.UserService.UpdatePassword(rowID, password);
|
||||
}
|
||||
}
|
||||
BindGrid();
|
||||
ShowNotify("密码已重置为原始密码!", MessageBoxIcon.Success);
|
||||
|
||||
Reference in New Issue
Block a user