Browse Source

Merge pull request #14720 from abpframework/auto-merge/rel-7-0/1467

Merge branch dev with rel-7.0
pull/14724/head
liangshiwei 4 years ago
committed by GitHub
parent
commit
81380d0bda
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      framework/src/Volo.Abp.Security/Volo/Abp/Security/AbpSecurityModule.cs

10
framework/src/Volo.Abp.Security/Volo/Abp/Security/AbpSecurityModule.cs

@ -5,6 +5,7 @@ using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
using Volo.Abp.Security.Claims;
using Volo.Abp.Security.Encryption;
using Volo.Abp.SecurityLog;
namespace Volo.Abp.Security;
@ -17,6 +18,15 @@ public class AbpSecurityModule : AbpModule
public override void ConfigureServices(ServiceConfigurationContext context)
{
var applicationName = context.Services.GetApplicationName();
if (!applicationName.IsNullOrEmpty())
{
Configure<AbpSecurityLogOptions>(options =>
{
options.ApplicationName = applicationName;
});
}
var configuration = context.Services.GetConfiguration();
context.Services.Configure<AbpStringEncryptionOptions>(options =>
{

Loading…
Cancel
Save