Solution of Registration Page Not Jumping after destoon Integration with ucenter

  • 2021-07-02 23:45:47
  • OfStack

Usually ucenter is used as an intermediary, adding multiple applications and then making multiple sites have the function of synchronizing login and exit.

It is not difficult to add applications to ucenter, and there are related tutorials on destoon official website.

However, many friends in several applications after the completion of the registration of an account test, the problem appeared, after the registration, the registration page did not jump, there is no prompt, but this member is registered successfully. Why didn't you jump?

Breakpoint testing shows that this is because in line 83 of the api/ucenter/control/user. php file for Destoon, a function that writes to the Dscuz system database is executed by default: the function onregbbs () function. The function of this function is to add 1 registration information to dz forum. On the Find Registration Submission page, there is one such code in the registration information processing file module/member/register. inc. php (approximately 125 lines) of destoon


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']);
}

Mask statement 2 directly:


//if($uid > 0 && $MOD['uc_bbs']) uc_user_regbbs($uid, $passport, $post['password'], $post['email']);

The problem will be solved.


Related articles: