Преглед на файлове

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

Jakub Vrana преди 11 години
родител
ревизия
150301ed
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      adminer/include/auth.inc.php

+ 2 - 2
adminer/include/auth.inc.php

@@ -137,13 +137,13 @@ if (isset($_GET["username"])) {
 	$connection = connect();
 	$connection = connect();
 }
 }
 
 
+$driver = new Min_Driver($connection);
+
 if (!is_object($connection) || !$adminer->login($_GET["username"], get_password())) {
 if (!is_object($connection) || !$adminer->login($_GET["username"], get_password())) {
 	auth_error();
 	auth_error();
 	exit;
 	exit;
 }
 }
 
 
-$driver = new Min_Driver($connection);
-
 if ($auth && $_POST["token"]) {
 if ($auth && $_POST["token"]) {
 	$_POST["token"] = $token; // reset token after explicit login
 	$_POST["token"] = $token; // reset token after explicit login
 }
 }