Skip to content

Commit e0cd9b3

Browse files
committed
change DefaultPassPhrase for every project
The {{DEFAULT_PASS_PHRASE_HERE}} placeholder will be replaced by website when the project is downloaded.
1 parent 1bf701c commit e0cd9b3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/AbpCompanyName.AbpProjectName.Core/AbpProjectNameConsts.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@ public class AbpProjectNameConsts
55
public const string LocalizationSourceName = "AbpProjectName";
66

77
public const bool MultiTenancyEnabled = true;
8+
9+
/// <summary>
10+
/// Default pass phrase for SimpleStringCipher decrypt/encrypt operations
11+
/// </summary>
12+
public const string DefaultPassPhrase = "{{DEFAULT_PASS_PHRASE_HERE}}";
813
}
914
}

src/AbpCompanyName.AbpProjectName.Core/AbpProjectNameCoreModule.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public override void PreInitialize()
4343
Configuration.Authorization.Providers.Add<AbpProjectNameAuthorizationProvider>();
4444

4545
Configuration.Settings.Providers.Add<AppSettingProvider>();
46+
47+
Configuration.Settings.SettingEncryptionConfiguration.DefaultPassPhrase = AbpProjectNameConsts.DefaultPassPhrase;
4648
}
4749

4850
public override void Initialize()

0 commit comments

Comments
 (0)