Want to add a verification code to phpmyadmin ?? However, the verification code cannot be found. can you tell me you want to add a verification code to phpmyadmin ?? However, the verification cannot be found. can you tell me. After all, it is easy for social workers to get verification codes. At the same time, I also want to encrypt the password in JS and then use PHP to decrypt it. Let me know. Thank you ., At the end of this post, xuzuning in 2012-12-201 wants to add a verification code to phpmyadmin ?? But the verification cannot be found. can you tell me?
Want to add a verification code to phpmyadmin ?? However, the verification cannot be found. can you tell me.
After all, it is easy for social workers to get verification codes. At the same time, I also want to encrypt the password in JS and then use PHP to decrypt it.
Let me know. Thank you.
------ Solution --------------------
At the end of this post, the logon form is edited by xuzuning at 16:46:41 on January 20, 240, which is near row libraries/auth/cookie. auth. lib. php.
The user name operation is near row 450 of the file.
if (! empty($_REQUEST['pma_username'])) {
// The user just logged in
$GLOBALS['PHP_AUTH_USER'] = $_REQUEST['pma_username'];
$GLOBALS['PHP_AUTH_PW'] = empty($_REQUEST['pma_password']) ? '' : $_REQUEST['pma_password'];
if ($GLOBALS['cfg']['AllowArbitraryServer'] && isset($_REQUEST['pma_servername'])) {
$GLOBALS['pma_auth_server'] = $_REQUEST['pma_servername'];
}
return true;
}
Phpmysqladmin does not need to verify the authenticity of the user name and password.
Because the account name and password are used for mysql, the database cannot be connected if an error occurs.