Experience Sharing in the ucenter1.5 integration with equation 3 (Asp.net) process.

Source: Internet
Author: User

In the process of integration, I took this post (or copied this post to the browser address and opened the: http://www.discuz.net/thread-1694755-1-1.html), here, he expressed his gratitude to the comrades who shared the experience.

It integrates discuzx1, ucenter, and the third equation developed by itself. What needs to be modified in discuzx1:

Function onedit () of user. php In uc_client \ Control ():

To: $ _ env ['note']-> Add ('updatepw', 'username = '. urlencode ($ username).' & Password = ');

Changed to: $ _ env ['note']-> Add ('updatepw', 'username = '. urlencode ($ username ). '& Password = '. $ newpw. '& Email = '. $ email );

=============== Segmentation of the copy operator, below is the copied token from the post address above ==============

After the password is changed, discuz transmits the password and email information to the ucenter through ucclient,
After receiving the message, ucenter stores the message in the cdb_uc_notelist table,
Then, a record close to 0 is retrieved from cdb_uc_notelist, and a password change notification is sent to each application one by one.
When debugging, check whether multiple records close to 0 in the table cdb_uc_notelist affect debugging.

In the uc_client \ Client. php file

Function uc_user_edit ($ username, $ oldpw, $ newpw, $ email, $ ignoreoldpw = 0, $ questionid = ", $ answer = "){
Return call_user_func (uc_api_func, 'user', 'edit', array ('username' => $ username, 'oldpw' => $ oldpw, 'newpw '=> $ newpw, 'email '=> $ email, 'ignoreoldpw' => $ ignoreoldpw, 'questionid' => $ questionid, 'answer' => $ answer ));
}

Change

Function uc_user_edit ($ username, $ oldpw, $ newpw, $ email, $ ignoreoldpw = 0, $ questionid = ", $ answer = "){
Return call_user_func ('uc _ api_post ', 'user', 'edit', array ('username' => $ username, 'oldpw' => $ oldpw, 'newpw '=> $ newpw, 'email' => $ email, 'ignoreoldpw' => $ ignoreoldpw, 'questionid' => $ questionid, 'answer' => $ answer ));
}

In the onedit () method of the uc_server \ Control \ User. php file

$ _ Env ['note']-> Add ('updatepw', 'username = '. urlencode ($ username).' & Password = ');

Change to (add $ ignoreoldpw, $ questionid, $ answer, and other variables to process the old password and password Q & A in a third-party Application)

$ _ Env ['note']-> Add ('updatepw', 'username = '. urlencode ($ username ). '& Password = '. urlencode ($ newpw ). '& Email = '. urlencode ($ email ));

Related Article

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.