Skip to content

Commit

Permalink
이메일 인증시 탈퇴된 회원이나 차단된 회원은 인증안되게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Oct 8, 2018
1 parent a4df23f commit eccdd7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bbs/email_certify.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
$mb_id = trim($_GET['mb_id']);
$mb_md5 = trim($_GET['mb_md5']);

$sql = " select mb_id, mb_email_certify2 from {$g5['member_table']} where mb_id = '{$mb_id}' ";
$sql = " select mb_id, mb_email_certify2, mb_leave_date, mb_intercept_date from {$g5['member_table']} where mb_id = '{$mb_id}' ";
$row = sql_fetch($sql);
if (!$row['mb_id'])
alert('존재하는 회원이 아닙니다.', G5_URL);

if ( $row['mb_leave_date'] || $row['mb_intercept_date'] ){
alert('탈퇴 또는 차단된 회원입니다.', G5_URL);
}

// 인증 링크는 한번만 처리가 되게 한다.
sql_query(" update {$g5['member_table']} set mb_email_certify2 = '' where mb_id = '$mb_id' ");

Expand Down

0 comments on commit eccdd7d

Please sign in to comment.