From cff5e5d2ade5b3fbd704db683878862bf044f89c Mon Sep 17 00:00:00 2001 From: sgshin Date: Mon, 2 Dec 2024 01:07:09 +0000 Subject: [PATCH] =?UTF-8?q?pms:6122=20=EC=86=8C=EC=85=9C=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FO/Views/Account/IndexBase.cshtml | 60 ------------------------------- 1 file changed, 60 deletions(-) diff --git a/FO/Views/Account/IndexBase.cshtml b/FO/Views/Account/IndexBase.cshtml index 804f4f5..85c6039 100644 --- a/FO/Views/Account/IndexBase.cshtml +++ b/FO/Views/Account/IndexBase.cshtml @@ -30,17 +30,6 @@
- @@ -155,53 +144,4 @@ } } else { msg("입력하신 아이디/비밀번호와 일치하는 계정이 없습니다. 다시 확인해주세요.
5회이상 비밀번호 오류 시 로그인이 제한됩니다."); } } - - var gauth; - 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://www.cte.or.kr/Account/NaverCallback",isPopup: true,loginButton: { color: "green", type: 3, height: 60 }}); - - function loginWithKakao() { - Kakao.Auth.login({ - success: function (authObj) { - Kakao.API.request({ - url: '/v2/user/me', - success: function (res) { - location.href = "/Account/KakaoCallback"; - }, - fail: function (error) { - alert( - 'login success, but failed to request user information: ' + - JSON.stringify(error) - ) - }, - }) - }, - fail: function (err) { - alert("카카오 아이디로 로그인에 실패했습니다.\r\n관리자에게 문의하세요."); - console.log(JSON.stringify(err)) - }, - }) - } - - function loginWithGoogle() { - gauth = gapi.auth2.getAuthInstance(); - gauth.signIn().then(function () { - location.href = "/Account/GoogleCallback" - }, function () { - alert("구글 아이디로 로그인에 실패했습니다.\r\n관리자에게 문의하세요."); - return; - }); - } - - function loginWithNaver() { - $("#naverIdLogin_loginButton > img").trigger("click"); - } - - function snsInit() { - naverLogin.init(); - Kakao.init("@kakaoClientId"); - } \ No newline at end of file