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 ));