Permalink
Browse files

Allow using in ->login() (bug #381)

  • Loading branch information...
1 parent 3e2288e commit 150301ed5f7c15ac7edf329c9a7101b5c4497acd @vrana committed Feb 8, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 adminer/include/auth.inc.php
@@ -137,13 +137,13 @@ function get_password() {
$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
}

0 comments on commit 150301e

Please sign in to comment.