1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 06:37:33 +02:00

Login: Fix hiding server with AdminerLoginServers

This commit is contained in:
Jakub Vrana
2025-04-01 18:27:04 +02:00
parent e0629c6445
commit 06469660e8
2 changed files with 2 additions and 2 deletions

View File

@@ -316,7 +316,7 @@ if ($vendor) {
if (!$count) {
echo "auth[driver] form field not found\n";
}
$file = str_replace(" . script(\"qs('#username').form['auth[driver]'].onchange();\")", "", $file);
$file = str_replace(" . script(\"const authDriver = qs('#username').form['auth[driver]']; authDriver && authDriver.onchange();\")", "", $file);
if ($vendor == "sqlite") {
$file = str_replace(");\n\t\techo \$this->loginFormField('server', '<tr><th>' . lang('Server') . '<td>', '<input name=\"auth[server]", ' . \'<input type="hidden" name="auth[server]"', $file);
}