Merge branch 'main' of http://10.dbnt.co.kr:50501/DBNT/geoinfo_eGov_work
commit
6d0dab72f6
|
|
@ -1045,10 +1045,11 @@ public class LoginController {
|
|||
}
|
||||
|
||||
else {
|
||||
if ("2".equals(cls)) {
|
||||
// 국토부 소속+산하기관 계정만 로그인 허용(국토부소속+산하기관:GL_CODE = 01)
|
||||
HashMap<String, Object> userGMap = drillingInputService.getOrganizationUserGlGmGsGfCodes(userid);
|
||||
String glCode = MyUtil.getStringFromObject( userGMap.get("v_gl") );
|
||||
if (!"01".equals(glCode)) {
|
||||
if (!"01".equals(glCode) && !"09".equals(cls)) {
|
||||
msg = "<script>alert('해당 계정은 현재 잠김 상태입니다');</script>";
|
||||
url = "index.do?cntyn=0";
|
||||
// --------------- 로그인 세션 정보 초기화 ---------------------
|
||||
|
|
@ -1063,8 +1064,15 @@ public class LoginController {
|
|||
request.getSession().removeAttribute("PARTNNAME");
|
||||
request.getSession().removeAttribute("PHONE");
|
||||
request.getSession().removeAttribute("EMAIL");
|
||||
mv.addObject("msg", msg);
|
||||
mv.addObject("url", url);
|
||||
|
||||
myTest(request, response, userid);
|
||||
|
||||
return mv;
|
||||
// --------------- 로그인 세션 정보 초기화 END ----------------
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
// 로그인 성공시 실패회수 초기화
|
||||
map.put("loginCount", 0);
|
||||
|
|
@ -1134,7 +1142,6 @@ public class LoginController {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ( loginCnt >= 5) {
|
||||
msg = "<script>alert('현재 "+loginCnt+"회이상 로그인 실패하여 로그인이 제한되었습니다.관리자(031-910-0402)에게 문의바랍니다.');</script>";
|
||||
|
|
|
|||
Loading…
Reference in New Issue