Compare commits
No commits in common. "2d1e2f53ee793f2229dbf4a96a7bd778fc392e8e" and "e46f204204994ee9ac607e5a2571ca0cd5acf18b" have entirely different histories.
2d1e2f53ee
...
e46f204204
|
@ -99,8 +99,6 @@ namespace IRaCIS.Application.Contracts
|
||||||
public bool IsZhiZhun { get; set; }
|
public bool IsZhiZhun { get; set; }
|
||||||
public bool IsFirstAdd { get; set; }
|
public bool IsFirstAdd { get; set; }
|
||||||
|
|
||||||
public bool NeedChangePassWord { get; set; } = false;
|
|
||||||
|
|
||||||
|
|
||||||
public bool PasswordChanged { get; set; }
|
public bool PasswordChanged { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -887,8 +887,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
//超过90天没修改密码
|
//超过90天没修改密码
|
||||||
if (_verifyConfig.CurrentValue.IsNeedChangePassWord && loginUser.LastChangePassWordTime != null && DateTime.Now.AddDays(-_verifyConfig.CurrentValue.ChangePassWordDays) > loginUser.LastChangePassWordTime.Value)
|
if (_verifyConfig.CurrentValue.IsNeedChangePassWord && loginUser.LastChangePassWordTime != null && DateTime.Now.AddDays(-_verifyConfig.CurrentValue.ChangePassWordDays) > loginUser.LastChangePassWordTime.Value)
|
||||||
{
|
{
|
||||||
loginUser.NeedChangePassWord = true;
|
loginUser.LoginState = 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//await _userLogRepository.AddAsync(new UserLog() { IP = _userInfo.IP, LoginUserId = loginUser.IdentityUserId, OptUserId = loginUser.IdentityUserId, OptType = UserOptType.Login }, true);
|
//await _userLogRepository.AddAsync(new UserLog() { IP = _userInfo.IP, LoginUserId = loginUser.IdentityUserId, OptUserId = loginUser.IdentityUserId, OptType = UserOptType.Login }, true);
|
||||||
|
@ -1053,7 +1052,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
//超过90天没修改密码
|
//超过90天没修改密码
|
||||||
if (_verifyConfig.CurrentValue.IsNeedChangePassWord && loginUser.LastChangePassWordTime != null && DateTime.Now.AddDays(-_verifyConfig.CurrentValue.ChangePassWordDays) > loginUser.LastChangePassWordTime.Value)
|
if (_verifyConfig.CurrentValue.IsNeedChangePassWord && loginUser.LastChangePassWordTime != null && DateTime.Now.AddDays(-_verifyConfig.CurrentValue.ChangePassWordDays) > loginUser.LastChangePassWordTime.Value)
|
||||||
{
|
{
|
||||||
loginUser.NeedChangePassWord = true;
|
loginUser.LoginState = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in New Issue