1
0
mirror of https://github.com/vrana/adminer.git synced 2025-09-08 21:30:42 +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

@@ -26,13 +26,13 @@ if (isset($_GET["elastic"])) {
))));
if ($file === false) {
$this->error = lang('Invalid credentials.');
$this->error = lang('Invalid server or credentials.');
return false;
}
$return = json_decode($file, true);
if ($return === null) {
$this->error = lang('Invalid credentials.');
$this->error = lang('Invalid server or credentials.');
return false;
}
@@ -40,7 +40,7 @@ if (isset($_GET["elastic"])) {
if (isset($return['error']['root_cause'][0]['type'])) {
$this->error = $return['error']['root_cause'][0]['type'] . ": " . $return['error']['root_cause'][0]['reason'];
} else {
$this->error = lang('Invalid credentials.');
$this->error = lang('Invalid server or credentials.');
}
return false;
}
@@ -73,7 +73,7 @@ if (isset($_GET["elastic"])) {
}
if (!isset($return['version']['number'])) {
$this->error = lang('Invalid credentials.');
$this->error = lang('Invalid server or credentials.');
return false;
}