pms:6122 소셜로그인 삭제

This commit is contained in:
sgshin 2024-12-02 01:07:09 +00:00
parent 501143dcde
commit cff5e5d2ad
1 changed files with 0 additions and 60 deletions

View File

@ -30,17 +30,6 @@
<br /> <br />
<div id="naverIdLogin" style="display:none"></div> <div id="naverIdLogin" style="display:none"></div>
<ul class="lgnSns">
<li>
<a href="javascript:loginWithNaver()">네이버 아이디로 로그인</a>
</li>
<li>
<a href="javascript:loginWithKakao()">카카오 아이디로 로그인</a>
</li>
<li>
<a href="javascript:loginWithGoogle()">구글 아이디로 로그인</a>
</li>
</ul>
</div> </div>
</form> </form>
@ -155,53 +144,4 @@
} }
} else { msg("입력하신 아이디/비밀번호와 일치하는 계정이 없습니다. 다시 확인해주세요.<br/>5회이상 비밀번호 오류 시 로그인이 제한됩니다."); } } else { msg("입력하신 아이디/비밀번호와 일치하는 계정이 없습니다. 다시 확인해주세요.<br/>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");
}
</script> </script>