20230806修改账号的密码安全策略

This commit is contained in:
2023-08-06 22:38:05 +08:00
parent f13d77c520
commit 2804d7c4df
15 changed files with 189 additions and 174 deletions
@@ -75,8 +75,12 @@ namespace FineUIPro.Web.Person
{
if (!this.btnMenuEdit.Hidden)
{
BLL.Person_PersonsService.UpdatePassword(personId, BLL.Const.Password);
ShowNotify("密码已重置为原始密码!", MessageBoxIcon.Success);
var getperson = Person_PersonsService.GetPerson_PersonsById(personId);
if (getperson != null)
{
BLL.Person_PersonsService.UpdatePassword(personId, Funs.getInitialPassword(getperson.UnitId, getperson.IdentityCard));
ShowNotify("密码已重置为原始密码!", MessageBoxIcon.Success);
}
}
else
{
+7 -2
View File
@@ -1,4 +1,5 @@
using BLL;
using FineUIPro.Web.HSSE.SitePerson;
using Model;
using Newtonsoft.Json.Linq;
using System;
@@ -679,8 +680,12 @@ namespace FineUIPro.Web.Person
{
if (!string.IsNullOrEmpty(this.PersonId))
{
BLL.Person_PersonsService.UpdatePassword(this.PersonId, BLL.Const.Password);
ShowNotify("密码已重置为原始密码!", MessageBoxIcon.Success);
var getperson = Person_PersonsService.GetPerson_PersonsById(this.PersonId);
if (getperson != null)
{
BLL.Person_PersonsService.UpdatePassword(this.PersonId, Funs.getInitialPassword(getperson.UnitId, getperson.IdentityCard));
ShowNotify("密码已重置为原始密码!", MessageBoxIcon.Success);
}
}
else
{
@@ -75,8 +75,12 @@ namespace FineUIPro.Web.Person
{
if (!this.btnMenuEdit.Hidden)
{
BLL.Person_PersonsService.UpdatePassword(personId, BLL.Const.Password);
ShowNotify("密码已重置为原始密码!", MessageBoxIcon.Success);
var getperson = Person_PersonsService.GetPerson_PersonsById(personId);
if (getperson != null)
{
BLL.Person_PersonsService.UpdatePassword(personId, Funs.getInitialPassword(getperson.UnitId, getperson.IdentityCard));
ShowNotify("密码已重置为原始密码!", MessageBoxIcon.Success);
}
}
else
{