2023-06-21 15:10 API KEY 사용자 생성 수정
This commit is contained in:
parent
24067b9d67
commit
10bf899c93
@ -577,7 +577,7 @@ public class ApiKeyMngController {
|
|||||||
*/
|
*/
|
||||||
@RequestMapping(value = {"/uss/ion/apikey/UserAPIInsertAPIKEYAjax.do"})
|
@RequestMapping(value = {"/uss/ion/apikey/UserAPIInsertAPIKEYAjax.do"})
|
||||||
public ModelAndView UserAPIInsertAPIKEYAjax(
|
public ModelAndView UserAPIInsertAPIKEYAjax(
|
||||||
//@RequestParam("mberId") String p_mberId,
|
@RequestParam("mberId") String p_mberId,
|
||||||
Model model) throws Exception {
|
Model model) throws Exception {
|
||||||
|
|
||||||
ModelAndView modelAndView = new ModelAndView();
|
ModelAndView modelAndView = new ModelAndView();
|
||||||
@ -588,13 +588,12 @@ public class ApiKeyMngController {
|
|||||||
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
||||||
System.out.println("1111111111112");
|
System.out.println("1111111111112");
|
||||||
ApiKeyVO apiKeyVO = new ApiKeyVO();
|
ApiKeyVO apiKeyVO = new ApiKeyVO();
|
||||||
apiKeyVO.setMberId(userId);
|
apiKeyVO.setMberId(p_mberId);
|
||||||
apiKeyVO.setUseYn("A");
|
apiKeyVO.setUseYn("A");
|
||||||
apiKeyVO.setAccessKey("");
|
apiKeyVO.setAccessKey("");
|
||||||
|
|
||||||
//키 생성 없이 신청서만 생성한다.
|
//키 생성 없이 신청서만 생성한다.
|
||||||
//난수
|
//난수
|
||||||
/*
|
|
||||||
String p_make_apikey;
|
String p_make_apikey;
|
||||||
List<ApiKeyVO> resultList = new ArrayList<ApiKeyVO>();
|
List<ApiKeyVO> resultList = new ArrayList<ApiKeyVO>();
|
||||||
do {
|
do {
|
||||||
@ -606,7 +605,6 @@ public class ApiKeyMngController {
|
|||||||
resultList = apiKeyMngService.selectCheckApiKeyDup(apiKeyVO);
|
resultList = apiKeyMngService.selectCheckApiKeyDup(apiKeyVO);
|
||||||
|
|
||||||
}while(resultList.size()>=1);
|
}while(resultList.size()>=1);
|
||||||
*/
|
|
||||||
|
|
||||||
//step3.create user and api key
|
//step3.create user and api key
|
||||||
apiKeyVO.setLastUpdusrId(userId);
|
apiKeyVO.setLastUpdusrId(userId);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user