260707_02_ENH: apikey 오류 수정
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user