用户验证 查询去掉跟踪

Uat_Study
hang 2022-05-26 18:07:41 +08:00
parent 998398beec
commit 5740850758
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ namespace IRaCIS.Application.Services
}
var dbUser = (await _userRepository.FirstOrDefaultAsync(t => t.Id == userId)).IfNullThrowException();
var dbUser = (await _userRepository.Where(t => t.Id == userId).FirstOrDefaultAsync()).IfNullThrowException();
if (oldPwd != null && dbUser.Password != oldPwd)
{