修改 前三次密码验证
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2025-01-20 20:14:44 +08:00
parent 7ec274fb72
commit 91b358e674
@@ -98,7 +98,7 @@ namespace IRaCIS.Core.Application.Service
throw new BusinessValidationFailedException(_localizer["User_NewOldPwdSame"]);
}
var passWordList = await _userPassWordLogRepository.Where(x => x.IdentityUserId == identityUserId).OrderByDescending(x => x.CreateTime).Take(2).ToListAsync();
var passWordList = await _userPassWordLogRepository.Where(x => x.IdentityUserId == identityUserId).OrderByDescending(x => x.CreateTime).Take(3).ToListAsync();
if (passWordList.Any(x => x.PassWord == newPwd))
{