Solution for Synchronous login after ucenter Registration requires Secondary Logon

Source: Internet
Author: User
1.
Open the configuration file config. Inc. php In the data directory of the root directory.
Define define ('dz _ dbtablepre', 'Your table prefix') at the bottom ');

2. Open the uc_server/model/user. php add_user Function
Add the following code before retun
// BEGIN        $this->db->query("INSERT INTO ".DZ_DBTABLEPRE."common_member SET uid=‘$uid‘, username=‘$username‘, password=‘$password‘, email=‘$email‘, adminid=‘0‘, groupid=‘10‘, regdate=‘".$this->base->time."‘, credits=‘0‘, timeoffset=‘9999‘");        $this->db->query("INSERT INTO ".DZ_DBTABLEPRE."common_member_status SET uid=‘$uid‘, regip=‘$regip‘, lastip=‘$regip‘, lastvisit=‘".$this->base->time."‘, lastactivity=‘".$this->base->time."‘, lastpost=‘0‘, lastsendmail=‘0‘");        $this->db->query("INSERT INTO ".DZ_DBTABLEPRE."common_member_profile SET uid=‘$uid‘, realname=‘$real‘");        $this->db->query("INSERT INTO ".DZ_DBTABLEPRE."common_member_field_forum SET uid=‘$uid‘");        $this->db->query("INSERT INTO ".DZ_DBTABLEPRE."common_member_field_home SET uid=‘$uid‘");        $this->db->query("INSERT INTO ".DZ_DBTABLEPRE."common_member_count SET uid=‘$uid‘, extcredits1=‘0‘, extcredits2=‘0‘, extcredits3=‘0‘, extcredits4=‘0‘, extcredits5=‘0‘, extcredits6=‘0‘, extcredits7=‘0‘, extcredits8=‘0‘");        // END

  

Solution for Synchronous login after ucenter Registration requires Secondary Logon

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.