bug #1662976 Authentication fails when controluser/pass is set
This commit is contained in:
@@ -78,7 +78,13 @@ function PMA_DBI_connect($user, $password, $is_controluser = FALSE) {
|
||||
$link = PMA_DBI_real_connect($cfg['Server']['host'] . $server_port . $server_socket, $user, '', empty($client_flags) ? NULL : $client_flags);
|
||||
}
|
||||
|
||||
if (empty($link)) {
|
||||
debug_print_backtrace();
|
||||
die;
|
||||
if (empty($link) && ! $is_controluser) {
|
||||
if ($is_controluser) {
|
||||
define('PMA_DBI_CONNECT_FAILED_CONTROLUSER', true);
|
||||
return false;
|
||||
}
|
||||
PMA_auth_fails();
|
||||
} // end if
|
||||
|
||||
|
Reference in New Issue
Block a user