From b56919a343cee82415047dd44a477f64b2b6f2ef Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 14 Apr 2018 02:52:03 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=9D=EC=97=85=20=EC=B0=A8=EB=8B=A8?= =?UTF-8?q?=EC=97=90=20=EB=A7=89=ED=9E=88=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 20 ++++++-------------- oauth_kakao/index.php | 20 ++++++-------------- 2 files changed, 12 insertions(+), 28 deletions(-) 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){