Very simple, you register a user, the password set a little bit simpler, Then find the Password field and salt field in the Uc_members table in the Ucenter database and change the password and salt fields of the administrator account in the Uc_members table to the same field values as the new registration. Then the Cdb_members table in the Forum database to find and modify the Administrator account password field value for the newly registered user in this table of the password field values, when you modify these, your administrator password and your new registered user's password is the same. Discuz The password for this product is to use your own password + randomly generated six-bit string and then encrypted with MD5, salt is a randomly generated six-bit characters, as long as the randomly generated six-bit characters you modify into the same, then the database stored in the encrypted password is the same. |
$result =mysql_query ("select * from"). Uc_dbtablepre. " Members where username= ' admin username '); $row =mysql_fetch_array ($result); $salt = $row [' salt ']; $newpwd =md5 (MD5 ($_REPWD). $salt); mysql_query ("Update"). Uc_dbtablepre. " Members set password= ' new password ' where username= ' admin username ');
Reset the password to the new password, and here "Uc_dbtablepre" is the table prefix at installation