diff --git a/plugin/inicert/ini_result.php b/plugin/inicert/ini_result.php index ffe924505..46850d055 100644 --- a/plugin/inicert/ini_result.php +++ b/plugin/inicert/ini_result.php @@ -43,16 +43,13 @@ if ($_POST["resultCode"] === "0000") { if(!$phone_no) alert_close("정상적인 인증이 아닙니다. 올바른 방법으로 이용해 주세요."); - $md5_ci = md5($ci . $ci); + $mb_dupinfo = md5($ci . $ci); $phone_no = hyphen_hp_number($phone_no); - $mb_dupinfo = $md5_ci; - - // $sql = " select mb_dupinfo from {$g5['member_table']} where mb_id = '{$member['mb_id']}'"; - // $row = sql_fetch($sql); - // if (!empty($row['mb_dupinfo'])) { - // if($row['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); - // } + // 명의 변경 체크 + if (!empty($member['mb_certify']) && !empty($member['mb_dupinfo']) && strlen($member['mb_dupinfo']) != 64) { // 이미 인증된 계정중에 dupinfo가 di(64 length)가 아닐때 + if($member['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); + } $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' "; $row = sql_fetch($sql); diff --git a/plugin/kcpcert/kcpcert_result.php b/plugin/kcpcert/kcpcert_result.php index 100223fa9..2b8816327 100644 --- a/plugin/kcpcert/kcpcert_result.php +++ b/plugin/kcpcert/kcpcert_result.php @@ -151,6 +151,11 @@ if( $cert_enc_use == "Y" ) $phone_no = hyphen_hp_number($phone_no); $mb_dupinfo = md5($ci.$ci); + // 명의 변경 체크 + if (!empty($member['mb_certify']) && !empty($member['mb_dupinfo']) && strlen($member['mb_dupinfo']) != 64) { // 이미 인증된 계정중에 dupinfo가 di(64 length)가 아닐때 + if($member['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); + } + $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' "; $row = sql_fetch($sql); if (!empty($row['mb_id'])) { diff --git a/plugin/lgxpay/AuthOnlyRes.php b/plugin/lgxpay/AuthOnlyRes.php index 6f202e3a3..31c02eca7 100644 --- a/plugin/lgxpay/AuthOnlyRes.php +++ b/plugin/lgxpay/AuthOnlyRes.php @@ -129,6 +129,11 @@ if ($xpay->TX()) { $phone_no = hyphen_hp_number($phone_no); $mb_dupinfo = md5($ci.$ci); + // 명의 변경 체크 + if (!empty($member['mb_certify']) && !empty($member['mb_dupinfo']) && strlen($member['mb_dupinfo']) != 64) { // 이미 인증된 계정중에 dupinfo가 di(64 length)가 아닐때 + if($member['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); + } + if($mb_dupinfo) { $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' "; $row = sql_fetch($sql); diff --git a/plugin/okname/hpcert2.php b/plugin/okname/hpcert2.php index ada63f818..4b0230ce2 100644 --- a/plugin/okname/hpcert2.php +++ b/plugin/okname/hpcert2.php @@ -113,6 +113,11 @@ $ci = $field[5]; $mb_dupinfo = md5($ci.$ci); // 통합인증 추가 후 ci로 변경 $phone_no = hyphen_hp_number($req_num); +// 명의 변경 체크 +if (!empty($member['mb_certify']) && !empty($member['mb_dupinfo']) && strlen($member['mb_dupinfo']) != 64) { // 이미 인증된 계정중에 dupinfo가 di(64 length)가 아닐때 + if($member['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); +} + // 중복정보 체크 $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' "; $row = sql_fetch($sql); diff --git a/plugin/okname/ipin2.php b/plugin/okname/ipin2.php index deb7bd09b..5f6f63d35 100644 --- a/plugin/okname/ipin2.php +++ b/plugin/okname/ipin2.php @@ -88,6 +88,11 @@ if(!empty($field[1])) { // 아이핀은 리턴받는 ci 데이터가 두가지 } $mb_dupinfo = md5($ci.$ci); // 통합인증 추가 후 ci로 변경 +// 명의 변경 체크 +if (!empty($member['mb_certify']) && !empty($member['mb_dupinfo']) && strlen($member['mb_dupinfo']) != 64) { // 이미 인증된 계정중에 dupinfo가 di(64 length)가 아닐때 + if($member['mb_dupinfo'] != $mb_dupinfo) alert_close("해당 계정은 이미 다른명의로 본인인증 되어있는 계정입니다."); +} + // 중복정보 체크 $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' "; $row = sql_fetch($sql);