Browse Source

Merge pull request #18382 from abpframework/liangshiwei/patch-1

Update SecurityStampValidatorOptionsExtensions.cs
pull/18383/head
maliming 3 years ago
committed by GitHub
parent
commit
e68c6f09bd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      modules/identity/src/Volo.Abp.Identity.AspNetCore/Volo/Abp/Identity/AspNetCore/SecurityStampValidatorOptionsExtensions.cs

5
modules/identity/src/Volo.Abp.Identity.AspNetCore/Volo/Abp/Identity/AspNetCore/SecurityStampValidatorOptionsExtensions.cs

@ -11,7 +11,10 @@ public static class SecurityStampValidatorOptionsExtensions
options.OnRefreshingPrincipal = async context => options.OnRefreshingPrincipal = async context =>
{ {
await SecurityStampValidatorCallback.UpdatePrincipal(context); await SecurityStampValidatorCallback.UpdatePrincipal(context);
await previousOnRefreshingPrincipal?.Invoke(context); if(previousOnRefreshingPrincipal != null)
{
await previousOnRefreshingPrincipal.Invoke(context);
}
}; };
return options; return options;
} }

Loading…
Cancel
Save