feat: 添加超级用户默认密码
This commit is contained in:
@@ -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 =>
|
||||
{
|
||||
|
||||
@@ -36,5 +36,11 @@
|
||||
"Audience": "https://ccnetcore.com",
|
||||
"SecurityKey": "zqxwcevrbtnymu312412ihe9rfwhe78rh23djoi32hrui3ryf9e8wfh34iuj54y0934uti4h97fgw7hf97wyh8yy69520",
|
||||
"ExpiresMinuteTime": 86400
|
||||
},
|
||||
|
||||
//Rbac模块
|
||||
"RbacOptions": {
|
||||
//超级管理员种子数据默认密码
|
||||
"AdminPassword": "123456"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user