Destoon Integration Ucenter After the registration page does not jump solution _php instance

Source: Internet
Author: User
Usually use Ucenter to do mediation, add multiple applications and then have multiple sites have the ability to log out synchronously.

Ucenter Add application is not difficult, Destoon official online also has related tutorials.

But many friends in several applications after the completion of the registration of an account test, the problem arises, after registration, the registration page did not jump, there is no hint, but this member is registered successfully. Why not jump?

The breakpoint test found this because the 83rd line in the Destoon api/ucenter/control/user.php file has a function that writes the DSCUZ system database, which is performed by default: function Onregbbs (). This function is to add a registration information to the DZ Forum. There is a code in the registration submission page found 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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.