From 91b358e6748981ec92a0288d89d22081f8fb549e Mon Sep 17 00:00:00 2001 From: hang <87227557@qq.com> Date: Mon, 20 Jan 2025 20:14:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=89=8D=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E5=AF=86=E7=A0=81=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Management/UserService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs index c63068e14..8334bd575 100644 --- a/IRaCIS.Core.Application/Service/Management/UserService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserService.cs @@ -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)) {