修改配置文件字段名

This commit is contained in:
root 2024-12-05 21:41:39 +08:00
parent e6bdd287c9
commit 9344ef6ccf
3 changed files with 3 additions and 3 deletions

View file

@ -92,7 +92,7 @@ namespace iFileProxy.Config
public int DailyRequestLimitPerIP { get; set; } = -1;
public bool AllowDifferentIPsForDownload { get; set; } = true;
public bool AllowStreamTransferOrZeroSize { get; set; } = false;
public bool EnableUserRegister { get; set; } = true;
public bool EnableUserRegistration { get; set; } = true;
}
public partial class Database

View file

@ -20,7 +20,7 @@ namespace iFileProxy.Controllers
[HttpPost("register")]
public async Task<ActionResult<CommonRsp>> Register([FromBody] RegisterRequest request)
{
if (!appConfig.SecurityOptions.EnableUserRegister)
if (!appConfig.SecurityOptions.EnableUserRegistration)
return BadRequest(new CommonRsp { Message = "管理员设置了禁止注册新用户", Retcode = -1 });
try
{

View file

@ -39,7 +39,7 @@
],
"AllowDifferentIPsForDownload": true, // IP
"AllowStreamTransferOrZeroSize": true, // 0
"EnableUserRegister": true //
"EnableUserRegistration": true //
},
"GithubProxy": {
"SizeLimit": 10000000000,