Browse Source

Merge pull request #1452 from colinin/fix-type-mapping

fix: Fix type mapping
pull/1455/head
yx lin 3 days ago
committed by GitHub
parent
commit
22de03a89d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityUserAppService.cs

3
aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityUserAppService.cs

@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Volo.Abp;
@ -62,7 +63,7 @@ public class IdentityUserAppService : IdentityAppServiceBase, IIdentityUserAppSe
{
var user = await UserManager.GetByIdAsync(id);
return new ListResultDto<IdentityClaimDto>(ObjectMapper.Map<ICollection<IdentityUserClaim>, List<IdentityClaimDto>>(user.Claims));
return new ListResultDto<IdentityClaimDto>(ObjectMapper.Map<List<IdentityUserClaim>, List<IdentityClaimDto>>(user.Claims.ToList()));
}
[Authorize(IdentityPermissions.Users.ManageClaims)]

Loading…
Cancel
Save