漏提交

Uat_Study
hang 2022-04-06 15:32:05 +08:00
parent 512a4591af
commit 59f5dc4944
2 changed files with 23 additions and 2 deletions

View File

@ -2058,6 +2058,14 @@
<returns></returns> <returns></returns>
<exception cref="T:IRaCIS.Core.Infrastructure.BusinessValidationFailedException"></exception> <exception cref="T:IRaCIS.Core.Infrastructure.BusinessValidationFailedException"></exception>
</member> </member>
<member name="M:IRaCIS.Application.Services.UserService.AnonymousSetPassword(System.Guid,System.String)">
<summary>
(未登陆) 设置新密码
</summary>
<param name="userId"></param>
<param name="newPwd"></param>
<returns></returns>
</member>
<!-- Badly formed XML comment ignored for member "M:IRaCIS.Application.Services.UserService.ModifyPassword(IRaCIS.Application.Contracts.EditPasswordCommand)" --> <!-- Badly formed XML comment ignored for member "M:IRaCIS.Application.Services.UserService.ModifyPassword(IRaCIS.Application.Contracts.EditPasswordCommand)" -->
<member name="M:IRaCIS.Application.Services.UserService.GetUserList(IRaCIS.Application.Contracts.UserListQueryDTO)"> <member name="M:IRaCIS.Application.Services.UserService.GetUserList(IRaCIS.Application.Contracts.UserListQueryDTO)">
<summary> <summary>

View File

@ -161,8 +161,16 @@ namespace IRaCIS.Application.Services
/// <returns></returns> /// <returns></returns>
[HttpGet("{userId:guid}")] [HttpGet("{userId:guid}")]
public async Task<IResponseOutput> ResetPassword(Guid userId public async Task<IResponseOutput> ResetPassword(Guid userId)
{
var success = await _userRepository.UpdateFromQueryAsync(t => t.Id == userId, u => new User()
{
Password = MD5Helper.Md5(StaticData.DefaultPassword),
PasswordChanged = false
});
return ResponseOutput.Result(success);
}
@ -247,7 +255,12 @@ namespace IRaCIS.Application.Services
} }
/// <summary>
/// (未登陆) 设置新密码
/// </summary>
/// <param name="userId"></param>
/// <param name="newPwd"></param>
/// <returns></returns>
[AllowAnonymous] [AllowAnonymous]
[HttpGet("{userId:guid}/{newPwd}")] [HttpGet("{userId:guid}/{newPwd}")]
public async Task<IResponseOutput> AnonymousSetPassword(Guid userId, string newPwd) public async Task<IResponseOutput> AnonymousSetPassword(Guid userId, string newPwd)