修改发送邮件

This commit is contained in:
2022-05-19 13:22:07 +08:00
parent d9b6004106
commit 8e8cd02084
4 changed files with 41 additions and 7 deletions
@@ -138,6 +138,23 @@ namespace IRaCIS.Application.Services
return ResponseOutput.Ok();
}
[HttpGet]
public async Task<IResponseOutput> InitSetUserNameAndPwd (Guid userId, string newUserName,string newPWd)
{
await _userRepository.UpdatePartialFromQueryAsync(userId, u => new User()
{
UserName = newUserName,
Password=newPWd,
IsFirstAdd=false,
},true);
return ResponseOutput.Ok();
}
/// <summary>
/// 重置密码为 默认密码