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 =>
{