

250617 김혜민 로그인 콜백에러 수정
@63561770841d0bba97b1ce86086549294fe4b1fe
--- src/main/java/com/takensoft/cms/mber/service/Impl/UnifiedLoginServiceImpl.java
+++ src/main/java/com/takensoft/cms/mber/service/Impl/UnifiedLoginServiceImpl.java
... | ... | @@ -70,14 +70,12 @@ |
70 | 70 |
if (user == null) { |
71 | 71 |
throw new CustomNotFoundException("사용자를 찾을 수 없습니다."); |
72 | 72 |
} |
73 |
- |
|
74 | 73 |
// 시스템 로그인의 경우 비밀번호 검증 |
75 | 74 |
if ("S".equals(lgnOffrType)) { |
76 | 75 |
if (password == null || !getPasswordEncoder().matches(password, user.getPassword())) { |
77 | 76 |
throw new CustomPasswordComparisonException("비밀번호가 일치하지 않습니다."); |
78 | 77 |
} |
79 | 78 |
} |
80 |
- |
|
81 | 79 |
return user; |
82 | 80 |
} catch (DataAccessException dae) { |
83 | 81 |
throw dae; |
... | ... | @@ -105,7 +103,6 @@ |
105 | 103 |
MberSocialAccountVO existingSocial = mberDAO.findSocialAccountByProvider(params); |
106 | 104 |
|
107 | 105 |
if (existingSocial != null) { |
108 |
- // 이미 연동되어 있음 - 정보만 업데이트 |
|
109 | 106 |
existingSocial.setSnsNm(name); |
110 | 107 |
existingSocial.setMdfr("OAUTH2_UPDATE"); |
111 | 108 |
updateSocialAccountInfo(existingSocial); |
--- src/main/java/com/takensoft/common/oauth/handler/OAuth2AuthenticationSuccessHandler.java
+++ src/main/java/com/takensoft/common/oauth/handler/OAuth2AuthenticationSuccessHandler.java
... | ... | @@ -88,7 +88,7 @@ |
88 | 88 |
// LoginUtil을 통한 통합 로그인 처리 |
89 | 89 |
loginUtil.successLogin(mber, request, response); |
90 | 90 |
|
91 |
- String redirectUrl = String.format("%s/?oauth_success=true&loginMode=%s&policyMode=%s", |
|
91 |
+ String redirectUrl = String.format("%s/login.page?oauth_success=true&loginMode=%s&policyMode=%s", |
|
92 | 92 |
frontUrl, |
93 | 93 |
currentLoginMode, |
94 | 94 |
allowMultipleLogin ? "Y" : "N"); |
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?