mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
Display Invalid credentials if connection error is empty
This commit is contained in:
@@ -164,8 +164,9 @@ if (isset($_GET["username"])) {
|
|||||||
$driver = new Min_Driver($connection);
|
$driver = new Min_Driver($connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$login = null;
|
||||||
if (!is_object($connection) || ($login = $adminer->login($_GET["username"], get_password())) !== true) {
|
if (!is_object($connection) || ($login = $adminer->login($_GET["username"], get_password())) !== true) {
|
||||||
auth_error((is_string($connection) ? h($connection) : (is_string($login) ? $login : lang('Invalid credentials.'))));
|
auth_error((is_string($connection) && $connection != "" ? h($connection) : (is_string($login) ? $login : lang('Invalid credentials.'))));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($auth && $_POST["token"]) {
|
if ($auth && $_POST["token"]) {
|
||||||
|
Reference in New Issue
Block a user