修复dataprotection

This commit is contained in:
yubaolee 2024-11-29 17:37:36 +08:00
commit 3373a91313

View File

@ -97,6 +97,8 @@ namespace OpenAuth.Mvc
services.AddDbContext<OpenAuthDBContext>();
services.AddHttpClient();
services.AddDataProtection().PersistKeysToFileSystem(new DirectoryInfo(Configuration["DataProtection"]));
services.AddDataProtection().PersistKeysToFileSystem(new DirectoryInfo(Configuration["DataProtection"]));
var sqlsugarTypes = UtilMethods.EnumToDictionary<SqlSugar.DbType>();