Home  >  Article  >  Backend Development  >  How to solve the problem that the registration page integrated with destoon and ucenter does not jump?

How to solve the problem that the registration page integrated with destoon and ucenter does not jump?

WBOY
WBOYOriginal
2016-07-25 09:11:54829browse

The registration page does not jump after destoon integrates ucenter

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 related tutorials on the destoon official website.

Sometimes after adding several applications, the problem occurs when registering an account for testing. After the registration is completed, the registration page does not jump and there is no prompt, but the membership is successfully registered. Why is there no jump? Breakpoint test, this is because in line 83 of Destoon's api/ucenter/control/user.php file, there is a function that writes the Dscuz system database and is executed by default: the function onregbbs() function. The function of this function is to add a registration information to the dz forum.

Find the registration submission page in destoon’s registration information processing file module/member/register.inc.php (about 125 lines):

  1. if($MOD['passport'] == 'uc') {
  2. $uid = uc_user_register($passport, $post['password'], $post['email']);
  3. if ($uid > 0 && $MOD['uc_bbs']) uc_user_regbbs($uid, $passport, $post['password'], $post['email']);
  4. }
Copy code

Directly block the second statement:

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

The problem was successfully solved.

Recommended reading: destoon introductory tutorials and skill examples


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn