Allow using in ->login() (bug #381)
This commit is contained in:
parent
3e2288eee5
commit
150301ed5f
1 changed files with 2 additions and 2 deletions
|
@ -137,13 +137,13 @@ if (isset($_GET["username"])) {
|
|||
$connection = connect();
|
||||
}
|
||||
|
||||
$driver = new Min_Driver($connection);
|
||||
|
||||
if (!is_object($connection) || !$adminer->login($_GET["username"], get_password())) {
|
||||
auth_error();
|
||||
exit;
|
||||
}
|
||||
|
||||
$driver = new Min_Driver($connection);
|
||||
|
||||
if ($auth && $_POST["token"]) {
|
||||
$_POST["token"] = $token; // reset token after explicit login
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue