休息时间改到配置文件

This commit is contained in:
he
2024-08-07 17:25:58 +08:00
parent cda134e92c
commit 74098641f6
10 changed files with 39 additions and 8 deletions
@@ -794,7 +794,7 @@ namespace IRaCIS.Application.Services
}
//超过90天没修改密码
if (loginUser.LastChangePassWordTime != null && DateTime.Now.AddDays(-90) > loginUser.LastChangePassWordTime.Value)
if (_verifyConfig.CurrentValue.IsNeedChangePassWord&& loginUser.LastChangePassWordTime != null && DateTime.Now.AddDays(-_verifyConfig.CurrentValue.ChangePassWordDays) > loginUser.LastChangePassWordTime.Value)
{
loginUser.LoginState = 1;
}