Ucenter is usually used as an intermediary to add multiple applications and enable multiple sites to have the function of synchronous login and logout.
It is not difficult to add applications to ucenter, and there are also related tutorials on the destoon official website.
However, many friends encountered problems when they registered an account for testing after adding several applications. After registration, the registration page did not jump and there was no prompt, but the membership was registered successfully. Why is there no jump?
After breakpoint testing, it was found that this is because in line 83 of Destoon’s api/ucenter/control/user.php file, there is a function written to the Dscuz system database that is executed by default: the function onregbbs() function. The function of this function is to add a registration information to the dz forum. After finding the registration submission page, there is such a piece of code in destoon’s registration information processing file module/member/register.inc.php (about 125 lines)
if($MOD['passport'] == ‘uc') { $uid = uc_user_register($passport, $post['password'], $post['email']); if($uid > 0 && $MOD['uc_bbs']) uc_user_regbbs($uid, $passport, $post['password'], $post['email']); }
Block the second statement directly:
//if($uid > 0 && $MOD['uc_bbs']) uc_user_regbbs($uid, $passport, $post['password'], $post['email']);
The problem is solved.