diff --git a/adminer/user.inc.php b/adminer/user.inc.php index 850dd8fa..bfc73638 100644 --- a/adminer/user.inc.php +++ b/adminer/user.inc.php @@ -109,7 +109,9 @@ if ($_POST) { } else { $row = $_GET + array("host" => $connection->result("SELECT SUBSTRING_INDEX(CURRENT_USER, '@', -1)")); // create user on the same domain by default $row["pass"] = $old_pass; - $row["hashed"] = true; + if ($old_pass != "") { + $row["hashed"] = true; + } $grants[""] = true; }