This commit is contained in:
hyunho 2020-12-20 23:37:18 +00:00
parent 51d63631c1
commit f07529809c
9 changed files with 10 additions and 10 deletions

View File

@ -35,7 +35,7 @@
} }
function goHome() { function goHome() {
if (capResult.code > 0) { if (capResult.code > 0) {
location.href = "https://ynicte.nptc.kr"; location.href = "https://cte.nptc.kr";
} }
} }
function goIndex() { function goIndex() {

View File

@ -114,7 +114,7 @@
gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId", scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})}); gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId", scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})});
} }
var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId", callbackUrl: "https://ynicte.nptc.kr/Account/NaverCallback",isPopup: true,loginButton: { color: "green", type: 3, height: 60 }}); var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId", callbackUrl: "https://cte.nptc.kr/Account/NaverCallback",isPopup: true,loginButton: { color: "green", type: 3, height: 60 }});
function loginWithKakao() { function loginWithKakao() {
Kakao.Auth.login({ Kakao.Auth.login({

View File

@ -239,7 +239,7 @@ else
var naverLogin = new naver.LoginWithNaverId( var naverLogin = new naver.LoginWithNaverId(
{ {
clientId: "@naverClientId", clientId: "@naverClientId",
callbackUrl: "https://ynicte.nptc.kr/Account/Join?jointype=2", callbackUrl: "https://cte.nptc.kr/Account/Join?jointype=2",
isPopup: false, isPopup: false,
callbackHandle: true callbackHandle: true
} }

View File

@ -36,7 +36,7 @@
function googleInit() {gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId",scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})});} function googleInit() {gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId",scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})});}
var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId", callbackUrl: "https://ynicte.nptc.kr/Account/NaverCallbackJoin",isPopup: true, loginButton: { color: "green", type: 3, height: 60 }}); var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId", callbackUrl: "https://cte.nptc.kr/Account/NaverCallbackJoin",isPopup: true, loginButton: { color: "green", type: 3, height: 60 }});
function loginWithKakao() { function loginWithKakao() {
Kakao.Auth.login({ Kakao.Auth.login({

View File

@ -45,7 +45,7 @@
} }
function goHome() { function goHome() {
if (capResult.code > 0) { if (capResult.code > 0) {
location.href = "https://ynicte.nptc.kr"; location.href = "https://cte.nptc.kr";
} }
} }
function goIndex() { function goIndex() {

View File

@ -15,7 +15,7 @@
var naverLogin = new naver.LoginWithNaverId( var naverLogin = new naver.LoginWithNaverId(
{ {
clientId: "@naverClientId", //개발자센터에 등록한 ClientID clientId: "@naverClientId", //개발자센터에 등록한 ClientID
callbackUrl: "https://ynicte.nptc.kr/Account/NaverCallback",//개발자센터에 등록한 callback Url callbackUrl: "https://cte.nptc.kr/Account/NaverCallback",//개발자센터에 등록한 callback Url
isPopup: false, /* 팝업을 통한 연동처리 여부 */ isPopup: false, /* 팝업을 통한 연동처리 여부 */
callbackHandle: true callbackHandle: true
/* callback 페이지가 분리되었을 경우에 callback 페이지에서는 callback처리를 해줄수 있도록 설정합니다. */ /* callback 페이지가 분리되었을 경우에 callback 페이지에서는 callback처리를 해줄수 있도록 설정합니다. */
@ -75,7 +75,7 @@
} }
function goHome() { function goHome() {
if (capResult.code > 0) { if (capResult.code > 0) {
opener.location.href = "https://ynicte.nptc.kr"; opener.location.href = "https://cte.nptc.kr";
self.close(); self.close();
} }
} }

View File

@ -23,7 +23,7 @@
var naverLogin = new naver.LoginWithNaverId( var naverLogin = new naver.LoginWithNaverId(
{ {
clientId: "@naverClientId", clientId: "@naverClientId",
callbackUrl: "https://ynicte.nptc.kr/Account/NaverCallbackJoin", callbackUrl: "https://cte.nptc.kr/Account/NaverCallbackJoin",
isPopup: false, isPopup: false,
callbackHandle: true callbackHandle: true
} }

View File

@ -24,7 +24,7 @@
var naverLogin = new naver.LoginWithNaverId( var naverLogin = new naver.LoginWithNaverId(
{ {
clientId: "@naverClientId", clientId: "@naverClientId",
callbackUrl: "https://ynicte.nptc.kr/Account/SNSLinkCallback", callbackUrl: "https://cte.nptc.kr/Account/SNSLinkCallback",
isPopup: false, isPopup: false,
callbackHandle: true callbackHandle: true
} }

View File

@ -326,7 +326,7 @@
function googleInit() { function googleInit() {
gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId", scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})}); gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId", scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})});
} }
var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId", callbackUrl: "https://ynicte.nptc.kr/Account/SNSLinkCallback?jointype=2",isPopup: true,loginButton: { color: "green", type: 3, height: 60 }}); var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId", callbackUrl: "https://cte.nptc.kr/Account/SNSLinkCallback?jointype=2",isPopup: true,loginButton: { color: "green", type: 3, height: 60 }});
function loginWithKakao() { function loginWithKakao() {
Kakao.Auth.login({ Kakao.Auth.login({