답변 1개
채택된 답변
+20 포인트
5년 전
본인확인을 호출하는쪽에 return url 을 넣는 부분이 있는데 그부분에 주소는 잘 들어가 있는지 보시고
잘 들어가 있다면 return받는 페이지에 target 을 확인하셔야 할것 같아요.
보니 팝업으로 띄어져서 opener으로 타겟이 되어있는지 보셔야 할것 같습니다.
로그인 후 평가할 수 있습니다
답변에 대한 댓글 3개
�
해피토이
5년 전
네 한번 확인해 보겠습니다
�
해피토이
5년 전
// 인증 요청 시 호출 함수
function cert_page()
{
var frm = document.form_auth;
if ( ( frm.req_tx.value == "auth" || frm.req_tx.value == "otp_auth" ) )
{
frm.action="./kcpcert_result.php";
// MOBILE
if( ( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 ) )
{
self.name="kcp_cert";
}
// PC
else
{
frm.target="kcp_cert";
}
frm.submit();
window.close();
}
else if ( frm.req_tx.value == "cert" )
{
if( ( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 ) ) // 스마트폰인 경우
{
window.parent.$("input[name=veri_up_hash]").val(frm.up_hash.value); // up_hash 데이터 검증을 위한 필드
self.name="auth_popup";
}
else // 스마트폰 아닐때
{
window.opener.$("input[name=veri_up_hash]").val(frm.up_hash.value); // up_hash 데이터 검증을 위한 필드
frm.target = "auth_popup";
}
frm.action="<?php echo $cert_url; ?>";
frm.submit();
}
}
</script>
여기서 수정할부분이 있을까요?
function cert_page()
{
var frm = document.form_auth;
if ( ( frm.req_tx.value == "auth" || frm.req_tx.value == "otp_auth" ) )
{
frm.action="./kcpcert_result.php";
// MOBILE
if( ( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 ) )
{
self.name="kcp_cert";
}
// PC
else
{
frm.target="kcp_cert";
}
frm.submit();
window.close();
}
else if ( frm.req_tx.value == "cert" )
{
if( ( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 ) ) // 스마트폰인 경우
{
window.parent.$("input[name=veri_up_hash]").val(frm.up_hash.value); // up_hash 데이터 검증을 위한 필드
self.name="auth_popup";
}
else // 스마트폰 아닐때
{
window.opener.$("input[name=veri_up_hash]").val(frm.up_hash.value); // up_hash 데이터 검증을 위한 필드
frm.target = "auth_popup";
}
frm.action="<?php echo $cert_url; ?>";
frm.submit();
}
}
</script>
여기서 수정할부분이 있을까요?
�
지오웹
5년 전
말로 설명 드리기가 애매한 부분이 있어서 직접 테스트 하면서 수정해야 할 것 같습니다ㅠㅠ
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
