Skip to content

Commit 076aa5b

Browse files
committed
fixed data protection path error
1 parent a46dd54 commit 076aa5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CoreHome.Admin/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void ConfigureServices(IServiceCollection services)
1717
{
1818
_ = services.AddDataProtection()
1919
.SetApplicationName("CoreHome")
20-
.PersistKeysToFileSystem(new(Path.Combine(StaticConfig.STORAGE_FOLDER, "/DataProtection")));
20+
.PersistKeysToFileSystem(new(Path.Combine(StaticConfig.STORAGE_FOLDER, "DataProtection")));
2121

2222
_ = services.Configure<CookieOptions>(config => config.SameSite = SameSiteMode.Lax);
2323

CoreHome.HomePage/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void ConfigureServices(IServiceCollection services)
1616
{
1717
_ = services.AddDataProtection()
1818
.SetApplicationName("CoreHome")
19-
.PersistKeysToFileSystem(new(Path.Combine(StaticConfig.STORAGE_FOLDER, "/DataProtection")));
19+
.PersistKeysToFileSystem(new(Path.Combine(StaticConfig.STORAGE_FOLDER, "DataProtection")));
2020

2121
_ = services.Configure<CookieOptions>(config => config.SameSite = SameSiteMode.Lax);
2222

0 commit comments

Comments
 (0)