mirror of
https://github.com/vrana/adminer.git
synced 2026-08-30 11:47:32 +02:00
SQLite: Require credentials to use (thanks to Vincent Waart)
This commit is contained in:
@@ -167,8 +167,8 @@ if (isset($_GET["username"])) {
|
||||
|
||||
$driver = new Min_Driver($connection);
|
||||
|
||||
if (!is_object($connection) || !$adminer->login($_GET["username"], get_password())) {
|
||||
auth_error((is_string($connection) ? $connection : lang('Invalid credentials.')));
|
||||
if (!is_object($connection) || ($login = $adminer->login($_GET["username"], get_password())) !== true) {
|
||||
auth_error((is_string($connection) ? $connection : (is_string($login) ? $login : lang('Invalid credentials.'))));
|
||||
}
|
||||
|
||||
if ($auth && $_POST["token"]) {
|
||||
|
||||
Reference in New Issue
Block a user