1
0
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:
Peter Knut
2024-01-26 10:21:18 +01:00
parent e69583a800
commit 55a7d3864f
48 changed files with 60 additions and 60 deletions

View File

@@ -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;
}

View File

@@ -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;
}