feat: 添加超级用户默认密码

This commit is contained in:
橙子
2023-12-16 14:10:11 +08:00
parent 4c0375ac2c
commit e14c973a74
5 changed files with 40 additions and 7 deletions

View File

@@ -98,9 +98,7 @@ namespace Yi.Abp.Web
});
//jwt鉴权
var section = configuration.GetSection(nameof(JwtOptions));
Configure<JwtOptions>(section);
var jwtOptions = section.Get<JwtOptions>();
var jwtOptions = configuration.GetSection(nameof(JwtOptions)).Get<JwtOptions>();
context.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options =>
{

View File

@@ -36,5 +36,11 @@
"Audience": "https://ccnetcore.com",
"SecurityKey": "zqxwcevrbtnymu312412ihe9rfwhe78rh23djoi32hrui3ryf9e8wfh34iuj54y0934uti4h97fgw7hf97wyh8yy69520",
"ExpiresMinuteTime": 86400
},
//Rbac模块
"RbacOptions": {
//超级管理员种子数据默认密码
"AdminPassword": "123456"
}
}