|
@@ -106,6 +106,9 @@ public class SigninService implements UserDetailsService {
|
106
|
106
|
MemberEntity memberEntity = null;
|
107
|
107
|
String connKey = "";
|
108
|
108
|
try {
|
|
109
|
+
|
|
110
|
+ System.out.println("====================================================") ;
|
|
111
|
+
|
109
|
112
|
UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(userId, password);
|
110
|
113
|
Authentication authentication = authenticationManager.authenticate(token);
|
111
|
114
|
SecurityContextHolder.getContext().setAuthentication(authentication);
|
|
@@ -146,7 +149,16 @@ public class SigninService implements UserDetailsService {
|
146
|
149
|
log.debug("connKey==>>>{}", connKey);
|
147
|
150
|
|
148
|
151
|
//로그인 이력 남기기
|
149
|
|
- userMngService.updateAppLoginDt(memberEntity.getUserId(), deviId, deviTpCd, deviOsVer, appReg, appVer);
|
|
152
|
+ System.out.println("deviId====================================================>" + deviId) ;
|
|
153
|
+
|
|
154
|
+ if (deviId == null || "".toString().equals(deviId)) {
|
|
155
|
+ System.out.println("deviId====================================================>isnull") ;
|
|
156
|
+ userMngService.updateLoginDt(memberEntity.getUserId());
|
|
157
|
+ } else {
|
|
158
|
+ System.out.println("deviId====================================================>exist") ;
|
|
159
|
+ userMngService.updateAppLoginDt(memberEntity.getUserId(), deviId, deviTpCd, deviOsVer, appReg, appVer);
|
|
160
|
+ }
|
|
161
|
+
|
150
|
162
|
|
151
|
163
|
} catch (GlobalException e) {
|
152
|
164
|
System.out.println("==GlobalException=====================> ");
|