Compare commits
2 Commits
5e48ed1e23
...
44fa4d3fc4
Author | SHA1 | Date |
---|---|---|
|
44fa4d3fc4 | |
|
f0c57c643b |
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue