Browse Source

Update IdentityDynamicClaimsPrincipalContributor.cs

pull/18064/head
maliming 2 years ago
parent
commit
a0415c26d7
  1. 2
      modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityDynamicClaimsPrincipalContributor.cs

2
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityDynamicClaimsPrincipalContributor.cs

@ -31,7 +31,7 @@ public class IdentityDynamicClaimsPrincipalContributor : AbpDynamicClaimsPrincip
{
// In case if user not found, We force to clear the claims principal.
context.ClaimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity());
var logger = context.GetRequiredService<Logger<IdentityDynamicClaimsPrincipalContributor>>();
var logger = context.GetRequiredService<ILogger<IdentityDynamicClaimsPrincipalContributor>>();
logger.LogWarning(e, $"User not found: {userId.Value}");
return;
}

Loading…
Cancel
Save