본인인증시 DN으로 회원 조회가 되도록 수정
@3d6ea9454de6a7e7c6763eca8a77189f35c18e41
--- src/main/java/itn/let/uat/uia/web/EgovLoginController.java
+++ src/main/java/itn/let/uat/uia/web/EgovLoginController.java
... | ... | @@ -1552,9 +1552,8 @@ |
| 1552 | 1552 |
if (!"admin".equals(loginVO.getId())) {
|
| 1553 | 1553 |
//아이디가 존재 |
| 1554 | 1554 |
if(passMissVO != null) {
|
| 1555 |
- if (null == resultVO.getId() |
|
| 1556 |
- && passMissVO.getPassMiss() < 5 |
|
| 1557 |
- ) { // 로그인 실패
|
|
| 1555 |
+ // 로그인 실패 ( |
|
| 1556 |
+ if (null == resultVO.getId() && passMissVO.getPassMiss() < 5 ) {
|
|
| 1558 | 1557 |
loginService.updatePassMissPlus(loginVO); |
| 1559 | 1558 |
alertMessage = egovMessageSource.getMessage("fail.common.login");
|
| 1560 | 1559 |
|
... | ... | @@ -1583,7 +1582,7 @@ |
| 1583 | 1582 |
*/ |
| 1584 | 1583 |
loginService.updatePassMissReset(loginVO); |
| 1585 | 1584 |
} |
| 1586 |
- } |
|
| 1585 |
+ } |
|
| 1587 | 1586 |
//아이디 미존재 |
| 1588 | 1587 |
else {
|
| 1589 | 1588 |
alertMessage = egovMessageSource.getMessage("fail.common.login");
|
... | ... | @@ -1602,7 +1601,19 @@ |
| 1602 | 1601 |
} |
| 1603 | 1602 |
} |
| 1604 | 1603 |
|
| 1605 |
- |
|
| 1604 |
+ |
|
| 1605 |
+ /* 일시 : 2023.07.26 |
|
| 1606 |
+ * 내용 : 로그인시 휴먼고객 redirect 기능 추가 |
|
| 1607 |
+ * 작업자 : 원영현 과장 |
|
| 1608 |
+ */ |
|
| 1609 |
+ |
|
| 1610 |
+ if(resultVO.getDormantYn().equals("Y") || resultVO.getDormantYn() == "Y") {
|
|
| 1611 |
+ |
|
| 1612 |
+ } |
|
| 1613 |
+ |
|
| 1614 |
+ |
|
| 1615 |
+ |
|
| 1616 |
+ |
|
| 1606 | 1617 |
boolean loginPolicyYn = true; |
| 1607 | 1618 |
|
| 1608 | 1619 |
// 접속IP |
... | ... | @@ -1615,23 +1626,19 @@ |
| 1615 | 1626 |
// 2. spring security 연동 |
| 1616 | 1627 |
request.getSession().setAttribute("LoginVO", resultVO);
|
| 1617 | 1628 |
UsernamePasswordAuthenticationFilter springSecurity = null; |
| 1618 |
- ApplicationContext act = WebApplicationContextUtils |
|
| 1619 |
- .getRequiredWebApplicationContext(request.getSession().getServletContext()); |
|
| 1620 |
- Map<String, UsernamePasswordAuthenticationFilter> beans = act |
|
| 1621 |
- .getBeansOfType(UsernamePasswordAuthenticationFilter.class); |
|
| 1629 |
+ ApplicationContext act = WebApplicationContextUtils.getRequiredWebApplicationContext(request.getSession().getServletContext()); |
|
| 1630 |
+ Map<String, UsernamePasswordAuthenticationFilter> beans = act.getBeansOfType(UsernamePasswordAuthenticationFilter.class); |
|
| 1631 |
+ |
|
| 1622 | 1632 |
if (beans.size() > 0) {
|
| 1623 | 1633 |
springSecurity = (UsernamePasswordAuthenticationFilter) beans.values().toArray()[0]; |
| 1624 | 1634 |
springSecurity.setUsernameParameter("egov_security_username");
|
| 1625 | 1635 |
springSecurity.setPasswordParameter("egov_security_password");
|
| 1626 |
- springSecurity.setRequiresAuthenticationRequestMatcher(new AntPathRequestMatcher( |
|
| 1627 |
- request.getServletContext().getContextPath() + "/egov_security_login", "POST")); |
|
| 1628 |
- |
|
| 1636 |
+ springSecurity.setRequiresAuthenticationRequestMatcher(new AntPathRequestMatcher(request.getServletContext().getContextPath() + "/egov_security_login", "POST")); |
|
| 1629 | 1637 |
} else {
|
| 1630 | 1638 |
throw new IllegalStateException("No AuthenticationProcessingFilter");
|
| 1631 | 1639 |
} |
| 1632 | 1640 |
|
| 1633 |
- springSecurity.doFilter(new RequestWrapperForSecurity(request, resultVO.getUserSe() + resultVO.getId(), |
|
| 1634 |
- resultVO.getUniqId()), response, null); |
|
| 1641 |
+ springSecurity.doFilter(new RequestWrapperForSecurity(request, resultVO.getUserSe() + resultVO.getId(), resultVO.getUniqId()), response, null); |
|
| 1635 | 1642 |
{ // 관리자 로그인 log 저장
|
| 1636 | 1643 |
String uniqId = ""; |
| 1637 | 1644 |
String ip = ""; |
... | ... | @@ -1681,7 +1688,6 @@ |
| 1681 | 1688 |
loginVO.setMessage("로그인 성공되었습니다.");
|
| 1682 | 1689 |
loginVO.setLoginYn("Y");
|
| 1683 | 1690 |
loginService.insertActionLoginLog(loginVO); |
| 1684 |
- |
|
| 1685 | 1691 |
} |
| 1686 | 1692 |
|
| 1687 | 1693 |
// 이벤트 결제 바로가기 로직 체크 Start |
... | ... | @@ -2889,8 +2895,7 @@ |
| 2889 | 2895 |
boolean TorF = true; |
| 2890 | 2896 |
if("USR".equals(mberManageVO.getUserSe()))
|
| 2891 | 2897 |
{
|
| 2892 |
- TorF = userManageService.selectAdminIdAjax(userManageVO) > 0 |
|
| 2893 |
- ? true : false; |
|
| 2898 |
+ TorF = userManageService.selectAdminIdAjax(userManageVO) > 0 ? true : false; |
|
| 2894 | 2899 |
|
| 2895 | 2900 |
mberManageVO.setMberNm("");
|
| 2896 | 2901 |
// 관리자 로그인 본인인증은 name이 null이여야함 |
... | ... | @@ -2898,9 +2903,17 @@ |
| 2898 | 2903 |
} |
| 2899 | 2904 |
else |
| 2900 | 2905 |
{
|
| 2901 |
- List<UserManageVO> usedNmList = new ArrayList<>(); |
|
| 2906 |
+ |
|
| 2907 |
+ /* |
|
| 2908 |
+ * 일 시 : 2023.07.25 |
|
| 2909 |
+ * 담당자 : 원영현 과장 수정 |
|
| 2910 |
+ * 내 용 : Dn 으로 회원정보 조회가 가능하도록 기능 수정 |
|
| 2911 |
+ * 변경된 핸드폰 번호로 조회시 정보조회가 안되기 때문에 무조건 true 로 변경 |
|
| 2912 |
+ * */ |
|
| 2913 |
+ /*List<UserManageVO> usedNmList = new ArrayList<>(); |
|
| 2902 | 2914 |
usedNmList = userManageService.selectUserIdAjax2(userManageVO); |
| 2903 |
- TorF = usedNmList.size() > 0 ? true : false; |
|
| 2915 |
+ TorF = usedNmList.size() > 0 ? true : false;*/ |
|
| 2916 |
+ TorF = true; |
|
| 2904 | 2917 |
} |
| 2905 | 2918 |
|
| 2906 | 2919 |
|
... | ... | @@ -3070,9 +3083,16 @@ |
| 3070 | 3083 |
public Boolean findIdKmcCheck(String DI, String Name, String PhoneNo) throws Exception {
|
| 3071 | 3084 |
UserManageVO userManageVO = new UserManageVO(); |
| 3072 | 3085 |
|
| 3073 |
- userManageVO.setEmplyrNm(Name); |
|
| 3074 |
- userManageVO.setMoblphonNo(PhoneNo); |
|
| 3075 |
- userManageVO.setMblDn(DI); |
|
| 3086 |
+ /* |
|
| 3087 |
+ * 일 시 : 2023.07.25 |
|
| 3088 |
+ * 담당자 : 원영현 과장 수정 |
|
| 3089 |
+ * 내 용 : Dn 으로 회원정보 조회가 가능하도록 기능 수정 |
|
| 3090 |
+ * 쿼리 조회시 번호를 제외한 이름과 Dn으로 조회 |
|
| 3091 |
+ * */ |
|
| 3092 |
+ |
|
| 3093 |
+ userManageVO.setEmplyrNm(Name); // 이름 |
|
| 3094 |
+// userManageVO.setMoblphonNo(PhoneNo); |
|
| 3095 |
+ userManageVO.setMblDn(DI); // Dn |
|
| 3076 | 3096 |
|
| 3077 | 3097 |
List<UserManageVO> usedNmList = userManageService.selectUserIdAjax(userManageVO); |
| 3078 | 3098 |
|
... | ... | @@ -3101,9 +3121,18 @@ |
| 3101 | 3121 |
if (isAuthenticated) {
|
| 3102 | 3122 |
return "redirect:/"; |
| 3103 | 3123 |
} |
| 3104 |
- |
|
| 3124 |
+ /* |
|
| 3125 |
+ * 일 시 : 2023.07.25 |
|
| 3126 |
+ * 담당자 : 원영현 과장 수정 |
|
| 3127 |
+ * 내 용 : Dn 으로 회원정보 조회가 가능하도록 기능 수정 |
|
| 3128 |
+ * 쿼리 조회시 번호를 제외한 이름과 Dn으로 조회 |
|
| 3129 |
+ * */ |
|
| 3130 |
+ UserManageVO userInfoVO = new UserManageVO(); |
|
| 3131 |
+ userInfoVO.setEmplyrNm(userManageVO.getEmplyrNm()); // 이름 |
|
| 3132 |
+ userInfoVO.setMblDn(userManageVO.getMblDn()); // Dn |
|
| 3133 |
+ |
|
| 3105 | 3134 |
String isFullUserid = "Y"; |
| 3106 |
- List<UserManageVO> usedNmList = userManageService.selectUserIdAjax(userManageVO); |
|
| 3135 |
+ List<UserManageVO> usedNmList = userManageService.selectUserIdAjax(userInfoVO); |
|
| 3107 | 3136 |
try {
|
| 3108 | 3137 |
if (!"kmc".equals(userManageVO.getFindType())) {
|
| 3109 | 3138 |
for (UserManageVO tmpVO : usedNmList) {
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?