|
|
|
@ -64,6 +64,7 @@ using Volo.Abp.BackgroundWorkers; |
|
|
|
using Shentun.Peis.Schedulers; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Shentun.Peis.ThirdInterfaces; |
|
|
|
using Microsoft.AspNetCore.Server.Kestrel.Core; |
|
|
|
|
|
|
|
namespace Shentun.Peis; |
|
|
|
[DependsOn( |
|
|
|
@ -135,14 +136,16 @@ public class PeisHttpApiHostModule : AbpModule |
|
|
|
opt.Password.RequiredLength = 1; |
|
|
|
}); |
|
|
|
|
|
|
|
////密码策略配置
|
|
|
|
//context.Services.Configure<IdentityOptions>(opt =>
|
|
|
|
|
|
|
|
|
|
|
|
//context.Services.Configure<IISServerOptions>(opt =>
|
|
|
|
//{
|
|
|
|
// opt.MaxRequestBodySize = 52428800;
|
|
|
|
//});
|
|
|
|
|
|
|
|
//context.Services.Configure<KestrelServerOptions>(opt =>
|
|
|
|
//{
|
|
|
|
// opt.Password.RequireDigit = false;
|
|
|
|
// opt.Password.RequireLowercase = false;
|
|
|
|
// opt.Password.RequireUppercase = false;
|
|
|
|
// opt.Password.RequireNonAlphanumeric = false;
|
|
|
|
// opt.Password.RequiredLength = 1;
|
|
|
|
// opt.Limits.MaxRequestBodySize = 52428800;
|
|
|
|
//});
|
|
|
|
|
|
|
|
#region 临时去掉日志
|
|
|
|
|