260707_02_ENH: apikey 오류 수정

This commit is contained in:
2026-07-07 11:55:20 +09:00
parent 07c3893132
commit ca84dd7d21
3 changed files with 10 additions and 10 deletions

View File

@@ -28,10 +28,10 @@ namespace REPORT_API_ver6.Controllers
hcAccessor.HttpContext.Response.ContentType = "text/plain";
var configuration = Common.GetConfiguration();
var value = configuration.GetSection("X-API-Key")[xApiKey ?? ""];
var apikey = configuration.GetSection("X-API-Key")[xApiKey ?? ""];
UserInfo? userInfo = String.IsNullOrEmpty(token)? null : Security.ValidateToken(token);
if (userInfo != null || !String.IsNullOrEmpty(value))
if (userInfo != null || !String.IsNullOrEmpty(apikey))
{
Project project = new Project();
if (project.getProjectInfo(pkey, Convert.ToInt32(iskiwi)).Rows.Count > 0)