邮箱验证漏洞修复

This commit is contained in:
SNIPER722 2017-01-18 01:12:17 +08:00
parent 6fba8df400
commit b2dddfcfa4
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ if($uid && isemail($email) && $time > TIMESTAMP - 86400) {
} elseif($ucresult == -6) {
showmessage('profile_email_duplicate', '', array(), array('return' => true));
}
if($member['groupid'] == 8) {
if($_G['setting']['regverify'] == 1 && $member['groupid'] == 8) {
$membergroup = C::t('common_usergroup')->fetch_by_credits($member['credits']);
$setarr['groupid'] = $membergroup['groupid'];
}