아이디 중복확인 수정

main
이범준 5 months ago
parent b25f45f23d
commit 94476ea404

@ -108,8 +108,8 @@ public class MainController extends cokr.xit.base.web.MainController {
}
@RequestMapping(name="중복 확인", value="/duplicate.do")
public ModelAndView isDuplicate(String account, String institute) {
ManagedUser user = userService.getUser(account, institute);
public ModelAndView isDuplicate(String account, String sggCd) {
ManagedUser user = userService.getUser(account, sggCd);
return new ModelAndView("jsonView")
.addObject("duplicate", user != null);
}

@ -327,7 +327,7 @@ $("#btnDuplicate").on("click", function(){
url : wctx.url("/duplicate.do"),
data : {
account : $("#user-form").find("[name='account']").val(),
institute : $("#user-form").find("[name='institute']").val()
sggCd : $("#user-form").find("[name='orgID']").val()
},
success : resp => {
if(resp.duplicate){

Loading…
Cancel
Save