Compare commits

..

No commits in common. "44fa4d3fc4a7dfbe43b4825c42e30055b378cec9" and "5e48ed1e236b5358b59414a7f6856e5f8ed8261a" have entirely different histories.

1 changed files with 7 additions and 10 deletions

View File

@ -123,8 +123,7 @@ 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()
{ {
@ -132,8 +131,6 @@ namespace IRaCIS.Application.Services
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()
{ {