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

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