Skip to content

Commit

Permalink
크롬 80 버전 대응 kcb okname 본인인증 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Feb 7, 2020
1 parent b855bbf commit 2e0b99f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions plugin/okname/hpcert2.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
**************************************************************************/

/* 공통 리턴 항목 */
//$idcfMbrComCd = $_POST['idcf_mbr_com_cd']; // 고객사코드
//$idcfMbrComCd = $_REQUEST['idcf_mbr_com_cd']; // 고객사코드
$idcfMbrComCd = $memId;
$hsCertSvcTxSeqno = $_POST['hs_cert_svc_tx_seqno']; // 거래번호
$rqstSiteNm = $_POST['rqst_site_nm']; // 접속도메인
$hsCertRqstCausCd = $_POST['hs_cert_rqst_caus_cd']; // 인증요청사유코드 2byte (00:회원가입, 01:성인인증, 02:회원정보수정, 03:비밀번호찾기, 04:상품구매, 99:기타)
$hsCertSvcTxSeqno = $_REQUEST['hs_cert_svc_tx_seqno']; // 거래번호
$rqstSiteNm = $_REQUEST['rqst_site_nm']; // 접속도메인
$hsCertRqstCausCd = $_REQUEST['hs_cert_rqst_caus_cd']; // 인증요청사유코드 2byte (00:회원가입, 01:성인인증, 02:회원정보수정, 03:비밀번호찾기, 04:상품구매, 99:기타)

$resultCd = $_POST['result_cd']; // 결과코드
$resultMsg = $_POST['result_msg']; // 결과메세지
$certDtTm = $_POST['cert_dt_tm']; // 인증일시
$resultCd = $_REQUEST['result_cd']; // 결과코드
$resultMsg = $_REQUEST['result_msg']; // 결과메세지
$certDtTm = $_REQUEST['cert_dt_tm']; // 인증일시

if($resultCd != 'B000') {
alert_close('휴대폰 본인확인 중 오류가 발생했습니다. 오류코드 : '.$resultCd.'\\n\\n문의는 코리아크레딧뷰로 고객센터 02-708-1000 로 해주십시오.');
Expand All @@ -38,15 +38,15 @@
/**************************************************************************
* 모듈 호출 ; 생년월일 본인 확인서비스 결과 데이터를 복호화한다.
**************************************************************************/
$encInfo = $_POST['encInfo'];
$encInfo = $_REQUEST['encInfo'];
if(preg_match('~[^0-9a-zA-Z+/=]~', $encInfo, $match)) {echo "입력 값 확인이 필요합니다"; exit;}

//KCB서버 공개키
$WEBPUBKEY = trim($_POST['WEBPUBKEY']);
$WEBPUBKEY = trim($_REQUEST['WEBPUBKEY']);
if(preg_match('~[^0-9a-zA-Z+/=]~', $WEBPUBKEY, $match)) {echo "입력 값 확인이 필요합니다"; exit;}

//KCB서버 서명값
$WEBSIGNATURE = trim($_POST['WEBSIGNATURE']);
$WEBSIGNATURE = trim($_REQUEST['WEBSIGNATURE']);
if(preg_match('~[^0-9a-zA-Z+/=]~', $WEBSIGNATURE, $match)) {echo "입력 값 확인이 필요합니다"; exit;}

// ########################################################################
Expand Down
6 changes: 3 additions & 3 deletions plugin/okname/ipin2.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
require('./ipin.config.php');

//아이핀팝업에서 조회한 PERSONALINFO이다.
@$encPsnlInfo = $_POST["encPsnlInfo"];
@$encPsnlInfo = $_REQUEST["encPsnlInfo"];
if(preg_match('~[^0-9a-zA-Z+/=]~', $encPsnlInfo, $match)) {echo "입력 값 확인이 필요합니다"; exit;}

//KCB서버 공개키
@$WEBPUBKEY = trim($_POST["WEBPUBKEY"]);
@$WEBPUBKEY = trim($_REQUEST["WEBPUBKEY"]);
if(preg_match('~[^0-9a-zA-Z+/=]~', $WEBPUBKEY, $match)) {echo "입력 값 확인이 필요합니다"; exit;}

//KCB서버 서명값
@$WEBSIGNATURE = trim($_POST["WEBSIGNATURE"]);
@$WEBSIGNATURE = trim($_REQUEST["WEBSIGNATURE"]);
if(preg_match('~[^0-9a-zA-Z+/=]~', $WEBSIGNATURE, $match)) {echo "입력 값 확인이 필요합니다"; exit;}

//아이핀 서버와 통신을 위한 키파일 생성
Expand Down

0 comments on commit 2e0b99f

Please sign in to comment.