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

Uat_IRC_Net8
hang 2025-01-20 20:14:44 +08:00
parent 7ec274fb72
commit 91b358e674
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{