修改登录限制,并且修改配置文件默认值

Test.EIImageViewer
hang 2023-06-29 09:07:10 +08:00
parent 6b812ab95c
commit f708d6c94a
2 changed files with 3 additions and 3 deletions

View File

@ -13,13 +13,13 @@
},
"BasicSystemConfig": {
"OpenUserComplexPassword": false,
"OpenUserComplexPassword": true,
"OpenSignDocumentBeforeWork": false,
"OpenTrialRelationDelete": true,
"OpenLoginLimit": false
"OpenLoginLimit": true
},
"SystemEmailSendConfig": {

View File

@ -79,7 +79,7 @@ public class LimitUserRequestAuthorization : IAsyncAuthorizationFilter
context.HttpContext.Response.ContentType = "application/json";
context.HttpContext.Response.StatusCode = StatusCodes.Status403Forbidden;
context.Result = new JsonResult(ResponseOutput.NotOk("您的账户在其他地方已登陆,您被迫下线。"));
context.Result = new JsonResult(ResponseOutput.NotOk("您的账户在其他地方已登陆,您被迫下线。", ApiResponseCodeEnum.LoginInOtherPlace));
//await context.HttpContext.Response.WriteAsync(JsonConvert.SerializeObject(ResponseOutput.NotOk("您的账户在其他地方已登陆,您被迫下线。", ApiResponseCodeEnum.LoginInOtherPlace)));
}