فهرست منبع

네이버 간편가입 필수 데이터 다 받으므로 오픈

jsshin 5 سال پیش
والد
کامیت
c7a6ba78f3
2فایلهای تغییر یافته به همراه4 افزوده شده و 6 حذف شده
  1. 2 4
      src/main/java/com/style24/front/biz/thirdparty/NaverLogin.java
  2. 2 2
      src/main/webapp/ux/style24_link.js

+ 2 - 4
src/main/java/com/style24/front/biz/thirdparty/NaverLogin.java

@@ -160,10 +160,8 @@ public class NaverLogin {
 			String snsId = response.getString("id");
 			String custNm = this.uniCodeDeCode(response.getString("name"));
 			String email = response.getString("email");
-			// TODO: 네이버 로그인 셋팅 시 휴대폰 필수로 셋팅 한다고 함 jsshin 2021-02-26
-			String cellphnno = response.getString("mobile").equals("") ? "010-2590-6246" : response.getString("mobile");
-			// TODO: 출생년도도 필수 값으로 셋팅 해야 할것 같음 jsshin 2021-02-26
-			String birthYmd = (response.getString("birthyear").equals("") ? "1990" : response.getString("birthyear")) + response.getString("birthday").replaceAll("-","");
+			String cellphnno = response.getString("mobile");
+			String birthYmd = response.getString("birthyear") + response.getString("birthday").replaceAll("-","");
 			String sexGb = response.getString("gender");
 			String ci = this.requestReplace(response.getString("ci"),"encodeData");
 

+ 2 - 2
src/main/webapp/ux/style24_link.js

@@ -222,9 +222,9 @@ var cfnLoginNaver = function (requestGb, chkRememberMe) {
 	let popupX = (window.screen.width / 2) - (popupWidth / 2);
 	let popupY = (window.screen.height / 3) - (popupHeight / 3);
 	if ('P' === _frontGb) {
-		//window.open(actionUrl, 'naverLogin', 'top=' + popupY + ',left=' + popupX + ',height=' + popupHeight + ',width=' + popupWidth + ', fullscreen=no,menubar=no,status=no,toolbar=no,titlebar=yes,location=no,scrollbars=yes', '');
+		window.open(actionUrl, 'naverLogin', 'top=' + popupY + ',left=' + popupX + ',height=' + popupHeight + ',width=' + popupWidth + ', fullscreen=no,menubar=no,status=no,toolbar=no,titlebar=yes,location=no,scrollbars=yes', '');
 	} else {
-		//document.location.href = actionUrl + '&requestGb=' + requestGb;
+		document.location.href = actionUrl + '&requestGb=' + requestGb;
 	}
 };