mirror of
https://github.com/vrana/adminer.git
synced 2025-09-02 10:53:09 +02:00
Change 'Invalid credentials.' message
This commit is contained in:
@@ -25,7 +25,7 @@ if (isset($_GET["clickhouse"])) {
|
||||
))));
|
||||
|
||||
if ($file === false) {
|
||||
$this->error = lang('Invalid credentials.');
|
||||
$this->error = lang('Invalid server or credentials.');
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ if (isset($_GET["clickhouse"])) {
|
||||
}
|
||||
}
|
||||
|
||||
$this->error = lang('Invalid credentials.');
|
||||
$this->error = lang('Invalid server or credentials.');
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -47,12 +47,12 @@ if (isset($_GET["clickhouse"])) {
|
||||
|
||||
$return = json_decode($file, true);
|
||||
if ($return === null) {
|
||||
$this->error = lang('Invalid credentials.');
|
||||
$this->error = lang('Invalid server or credentials.');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!isset($return['rows']) || !isset($return['data']) || !isset($return['meta'])) {
|
||||
$this->error = lang('Invalid credentials.');
|
||||
$this->error = lang('Invalid server or credentials.');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -15,7 +15,7 @@ if (isset($_GET["simpledb"])) {
|
||||
*/
|
||||
function connect($server, $password) {
|
||||
if ($server == '' || $password == '') {
|
||||
$this->error = lang('Invalid credentials.');
|
||||
$this->error = lang('Invalid server or credentials.');
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ if (isset($_GET["simpledb"])) {
|
||||
if (!$parts || !isset($parts['host']) || !preg_match('~^sdb\.([a-z0-9-]+\.)?amazonaws\.com$~i', $parts['host']) ||
|
||||
isset($parts['port'])
|
||||
) {
|
||||
$this->error = lang('Invalid credentials.');
|
||||
$this->error = lang('Invalid server or credentials.');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user