修改用户重置密码
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
bd82470995
commit
db360938fd
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue