Home > Backend Development > PHP Tutorial > Solution to the problem that the registration page does not jump after destoon integrates ucenter_PHP tutorial

Solution to the problem that the registration page does not jump after destoon integrates ucenter_PHP tutorial

WBOY
Release: 2016-07-13 10:24:12
Original
1061 people have browsed it

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

Copy after login

Block the second statement directly:

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

The problem is solved.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/825554.htmlTechArticleUsually ucenter is used as an intermediary to add multiple applications and then enable multiple sites to have the function of synchronous login and exit. It is not difficult to add applications to ucenter, and there are related tutorials on the destoon official website. But...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template