From 6d7ff4b180a024e6ef1afb79df8b49931a0d267d Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Fri, 18 Sep 2026 10:10:08 +0900 Subject: [PATCH] =?UTF-8?q?260918=5F02=5FENH:=20=EC=9D=B8=EC=A6=9D=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=EC=97=90=20id=EC=99=80=20=ED=8C=80=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KART_API/Controllers/SecurityController.cs | 4 ++-- KART_API/Dto/SecurityDto.cs | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/KART_API/Controllers/SecurityController.cs b/KART_API/Controllers/SecurityController.cs index 8f9f341..ac549e1 100644 --- a/KART_API/Controllers/SecurityController.cs +++ b/KART_API/Controllers/SecurityController.cs @@ -87,7 +87,7 @@ namespace KART_API.Controllers Security security = new Security(); string token = security.GenerateToken(userID, userName, userTeam, isAdmin); - Authentication authentication = new Authentication(token, userName, isAdmin); + Authentication authentication = new Authentication(token, userID, userTeam, userName, isAdmin); returnString = Common.GetJsonFromObject(authentication); Response.StatusCode = (int)HttpStatusCode.OK; @@ -144,7 +144,7 @@ namespace KART_API.Controllers string tempID = externalParam.External + "_" + Common.GetRandomString(); string token = security.GenerateToken(tempID, externalParam.External, externalParam.External, "9"); - Authentication authentication = new Authentication(token, externalParam.External, "9"); + Authentication authentication = new Authentication(token, tempID, externalParam.External, externalParam.External, "9"); returnString = Common.GetJsonFromObject(authentication); Response.StatusCode = (int)HttpStatusCode.OK; diff --git a/KART_API/Dto/SecurityDto.cs b/KART_API/Dto/SecurityDto.cs index 5e716e1..0ecf0e4 100644 --- a/KART_API/Dto/SecurityDto.cs +++ b/KART_API/Dto/SecurityDto.cs @@ -20,12 +20,16 @@ namespace KART_API.Dto public class Authentication { public string Token { get; set; } - public string Name { get; set; } - public string IsAdmin { get; set; } - public Authentication(string token, string name, string isAdmin) + public string ID { get; set; } + public string Name { get; set; } + public string Team { get; set; } + public string IsAdmin { get; set; } + public Authentication(string token, string id, string team, string name, string isAdmin) { Token = token; - Name = name; + ID = id; + Team = team; + Name = name; IsAdmin = isAdmin; } public Authentication() { }