Home > Article > Backend Development > Solution to discuz email has been registered_PHP tutorial
If the forum has too many unique mailboxes and cannot modify them one by one, it can only be solved through a program to prevent errors when changing the password. The specific modifications are as follows:
Found:
$ucresult = uc_user_edit($discuz_user, $oldpassword, $newpassword, $emailnew, 0, $questionidnew, $answernew);
Add
above
if($emailnew==$member[email]){$emailnew="";$emailnew1=$member[email];}else{$emailnew1=$emailnew;}
Found:
if($regverify == 1 && $adminid == 0 && $emailnew != $email && (($grouptype == 'member' && $adminid == 0) || $groupid == 8)) {
Replace
$emailnew changed to $emailnew1