diff --git a/css/login.css b/css/login.css index 3232b9a7..d8c3d4ff 100644 --- a/css/login.css +++ b/css/login.css @@ -98,6 +98,10 @@ input::-webkit-input-placeholder { z-index:800; } +#login_card{ + z-index:801; +} + #btn_kakao_login{ cursor: pointer; height:46px; diff --git a/index.php b/index.php index 9b50cd88..d3ddb6bd 100644 --- a/index.php +++ b/index.php @@ -81,12 +81,18 @@ function doLoginUsingOAuth(){ url:'oauth_kakao/j_login_oauth.php', dataType:'json' }).then(function(obj){ - if(!obj.result){ - alert(obj.reason); - } - else{ + if(obj.result){ window.location.href = "./"; + return; } + if(!obj.reqOTP){ + alert(obj.reason); + return; + } + $('#modalOTP').modal().on('shown.bs.modal', function(){ + $('#otp_code').focus(); + }); + }); } @@ -126,7 +132,7 @@ function postOAuthResult(result){