diff --git a/index.php b/index.php index 34fcb004..9a4c6d94 100644 --- a/index.php +++ b/index.php @@ -53,15 +53,12 @@ function getOAuthToken(mode='login', scope_list = null){ } -function sendTempPasswordToKakaoTalk(retry=false){ +function sendTempPasswordToKakaoTalk(){ $.post({ url:'j_change_pw.php', dataType:'json' }).then(function(obj){ - if (!obj.result && retry) { - getOAuthToken('change_pw', 'talk_message'); - } - else if(!obj.result){ + if(!obj.result){ alert(obj.reason); } else{ @@ -70,18 +67,13 @@ function sendTempPasswordToKakaoTalk(retry=false){ }); } -function doLoginUsingOAuth(retry=false){ +function doLoginUsingOAuth(){ $.post({ url:'oauth_kakao/j_login_oauth.php', dataType:'json' }).then(function(obj){ if(!obj.result){ - if(obj.noRetry || !retry){ - alert(obj.reason); - } - else{ - getOAuthToken('login'); - } + alert(obj.reason); } else{ window.location.href = "./"; @@ -140,7 +132,7 @@ function postOAuthResult(result){
-
+
@@ -148,7 +140,7 @@ function postOAuthResult(result){