IRC_NewDev
he 2024-05-29 14:59:26 +08:00
parent cc00cce704
commit f0c57c643b
1 changed files with 9 additions and 6 deletions

View File

@ -123,14 +123,17 @@ namespace IRaCIS.Application.Services
{
throw new BusinessValidationFailedException(_localizer["User_PassWordRepeat"]);
}
await _userPassWordLogRepository.AddAsync(new UserPassWordLog()
if (oldPwd != null)
{
await _userPassWordLogRepository.AddAsync(new UserPassWordLog()
{
CreateTime = DateTime.Now,
PassWord = oldPwd,
UserId = userId,
});
CreateTime = DateTime.Now,
PassWord = oldPwd,
UserId = userId,
});
}
await _userRepository.BatchUpdateNoTrackingAsync(x => x.Id == userId, x => new User()
{