Browse Source

Update IdentityDynamicClaimsPrincipalContributor.cs

pull/18064/head
maliming 3 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. // In case if user not found, We force to clear the claims principal.
context.ClaimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity()); 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}"); logger.LogWarning(e, $"User not found: {userId.Value}");
return; return;
} }

Loading…
Cancel
Save