修改仓储名
This commit is contained in:
@@ -93,10 +93,10 @@ namespace IRaCIS.Application.Services
|
||||
return ResponseOutput.NotOk("The mailbox for this user type already exists");
|
||||
}
|
||||
|
||||
await _userRepository.UpdatePartialFields(_userInfo.Id, u => new User()
|
||||
await _userRepository.UpdatePartialFieldsNowAsync(_userInfo.Id, u => new User()
|
||||
{
|
||||
EMail = newEmail
|
||||
}, true);
|
||||
});
|
||||
|
||||
//删除验证码历史记录
|
||||
await _verificationCodeRepository.BatchDeleteAsync(t => t.UserId == _userInfo.Id && t.CodeType == 0);
|
||||
@@ -113,10 +113,10 @@ namespace IRaCIS.Application.Services
|
||||
{
|
||||
|
||||
|
||||
await _userRepository.UpdatePartialFields(_userInfo.Id, u => new User()
|
||||
await _userRepository.UpdatePartialFieldsNowAsync(_userInfo.Id, u => new User()
|
||||
{
|
||||
Phone = newPhone
|
||||
},true);
|
||||
});
|
||||
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
@@ -130,10 +130,10 @@ namespace IRaCIS.Application.Services
|
||||
{
|
||||
return ResponseOutput.NotOk("UserId already exists");
|
||||
}
|
||||
await _userRepository.UpdatePartialFields(_userInfo.Id, u => new User()
|
||||
await _userRepository.UpdatePartialFieldsNowAsync(_userInfo.Id, u => new User()
|
||||
{
|
||||
UserName = newUserName
|
||||
},true);
|
||||
});
|
||||
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
@@ -148,11 +148,11 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
public async Task<IResponseOutput> ResetPassword(Guid userId)
|
||||
{
|
||||
await _userRepository.UpdatePartialFields(userId, u => new User()
|
||||
await _userRepository.UpdatePartialFieldsNowAsync(userId, u => new User()
|
||||
{
|
||||
Password = MD5Helper.Md5(StaticData.DefaultPassword),
|
||||
IsFirstAdd = true
|
||||
}, true);
|
||||
});
|
||||
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user