Merge branch 'Test_IRC_Net8' of http://192.168.3.68:2000/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing Details

IRC_NewDev
hang 2024-05-29 16:38:02 +08:00
commit f210799c4d
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"]); throw new BusinessValidationFailedException(_localizer["User_PassWordRepeat"]);
} }
if (oldPwd != null)
await _userPassWordLogRepository.AddAsync(new UserPassWordLog()
{ {
await _userPassWordLogRepository.AddAsync(new UserPassWordLog()
{
CreateTime = DateTime.Now, CreateTime = DateTime.Now,
PassWord = oldPwd, PassWord = oldPwd,
UserId = userId, UserId = userId,
}); });
}
await _userRepository.BatchUpdateNoTrackingAsync(x => x.Id == userId, x => new User() await _userRepository.BatchUpdateNoTrackingAsync(x => x.Id == userId, x => new User()
{ {