From 10bf899c93796cb86eaa32b7c44a4ec75ea4b1cd Mon Sep 17 00:00:00 2001 From: myname Date: Wed, 21 Jun 2023 15:11:14 +0900 Subject: [PATCH] =?UTF-8?q?2023-06-21=2015:10=20API=20KEY=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=EC=9E=90=20=EC=83=9D=EC=84=B1=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itn/let/mjo/apikey/web/ApiKeyMngController.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/itn/let/mjo/apikey/web/ApiKeyMngController.java b/src/main/java/itn/let/mjo/apikey/web/ApiKeyMngController.java index e6d653ba..c50780f8 100644 --- a/src/main/java/itn/let/mjo/apikey/web/ApiKeyMngController.java +++ b/src/main/java/itn/let/mjo/apikey/web/ApiKeyMngController.java @@ -577,7 +577,7 @@ public class ApiKeyMngController { */ @RequestMapping(value = {"/uss/ion/apikey/UserAPIInsertAPIKEYAjax.do"}) public ModelAndView UserAPIInsertAPIKEYAjax( - //@RequestParam("mberId") String p_mberId, + @RequestParam("mberId") String p_mberId, Model model) throws Exception { ModelAndView modelAndView = new ModelAndView(); @@ -588,13 +588,12 @@ public class ApiKeyMngController { String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId()); System.out.println("1111111111112"); ApiKeyVO apiKeyVO = new ApiKeyVO(); - apiKeyVO.setMberId(userId); + apiKeyVO.setMberId(p_mberId); apiKeyVO.setUseYn("A"); apiKeyVO.setAccessKey(""); //키 생성 없이 신청서만 생성한다. - //난수 - /* + //난수 String p_make_apikey; List resultList = new ArrayList(); do { @@ -605,8 +604,7 @@ public class ApiKeyMngController { apiKeyVO.setAccessKey(p_make_apikey); resultList = apiKeyMngService.selectCheckApiKeyDup(apiKeyVO); - }while(resultList.size()>=1); - */ + }while(resultList.size()>=1); //step3.create user and api key apiKeyVO.setLastUpdusrId(userId);