This commit is contained in:
hyunho 2020-12-21 05:21:11 +00:00
parent c28fb0e752
commit 3bb2654557
3 changed files with 7 additions and 17 deletions

View File

@ -122,13 +122,7 @@
Kakao.API.request({
url: '/v2/user/me',
success: function (res) {
if (res.kakao_account.email == "" || res.kakao_account.email == null || res.kakao_account.email == undefined) {
alert("이메일 제공 동의 후 이용하실 수 있습니다.");
return;
}
else {
location.href = "/Account/KakaoCallback";
}
},
fail: function (error) {
alert(

View File

@ -285,13 +285,15 @@ else
url: '/v2/user/me',
success: function (res) {
$("#username").val(res.properties.nickname);
if (res.kakao_account.email != null && res.kakao_account.email != "" && res.kakao_account.email != undefined) {
$("#email").val(res.kakao_account.email);
$("#email").prop("readonly", "readonly");
$("#email").css("background-color", "#ddd");
}
$("#snsid").val(res.id);
$("#jointype").val(3); //0:일반회원가입,1:google,2:naver,3:kakao
$("#username").prop("readonly", "readonly");
$("#username").css("background-color", "#ddd");
$("#email").prop("readonly", "readonly");
$("#email").css("background-color", "#ddd");
},
fail: function (error) {
console.log(error);

View File

@ -44,13 +44,7 @@
Kakao.API.request({
url: '/v2/user/me',
success: function (res) {
if (res.kakao_account.email == "" || res.kakao_account.email == null || res.kakao_account.email == undefined) {
alert("이메일 제공 동의 후 이용하실 수 있습니다.");
return;
}
else {
location.href = "/Account/Join?jointype=3";
}
},
fail: function (error) {
alert(