20230806修改账号的密码安全策略
This commit is contained in:
@@ -98,10 +98,13 @@
|
||||
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
BLL.Person_PersonsService.UpdatePassword(rowID, BLL.Const.Password);
|
||||
{ var getperson = Person_PersonsService.GetPerson_PersonsById(Grid1.DataKeys[rowIndex][0].ToString());
|
||||
if (getperson != null)
|
||||
{
|
||||
BLL.Person_PersonsService.UpdatePassword(getperson.PersonId, Funs.getInitialPassword(getperson.UnitId, getperson.IdentityCard));
|
||||
}
|
||||
}
|
||||
|
||||
BindGrid();
|
||||
ShowNotify("密码已重置为原始密码!", MessageBoxIcon.Success);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user