修改用户重置密码
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net8
hang 2024-12-24 17:32:45 +08:00
parent bd82470995
commit db360938fd
2 changed files with 3 additions and 3 deletions

View File

@ -252,7 +252,7 @@ namespace IRaCIS.Application.Contracts
public class UserAccountDto
{
public Guid UserId { get; set; }
public Guid Id { get; set; }
public string UserName { get; set; } = string.Empty;

View File

@ -382,7 +382,7 @@ namespace IRaCIS.Core.Application.Service
}
}
var list = await _identityUserRepository.Where(t => t.EMail == email && t.Status == UserStateEnum.Enable).Select(t => new UserAccountDto() { UserId = t.Id, UserName = t.UserName, UserRealName = t.FullName }).ToListAsync();
var list = await _identityUserRepository.Where(t => t.EMail == email && t.Status == UserStateEnum.Enable).Select(t => new UserAccountDto() { Id= t.Id, UserName = t.UserName, UserRealName = t.FullName }).ToListAsync();
@ -397,7 +397,7 @@ namespace IRaCIS.Core.Application.Service
/// <param name="newPwd"></param>
/// <returns></returns>
[AllowAnonymous]
[HttpGet("{userId:guid}/{newPwd}")]
[HttpGet("{identityUserId:guid}/{newPwd}")]
public async Task<IResponseOutput> AnonymousSetPassword(Guid identityUserId, string newPwd)
{