]> git.joonet.de Git - adminer.git/commitdiff
Not hashed password by default
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Mon, 26 Apr 2010 16:24:00 +0000 (16:24 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Mon, 26 Apr 2010 16:24:00 +0000 (16:24 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1501 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/user.inc.php

index 850dd8fa360228bd37a76c58c7b04248c7d6c6fe..bfc73638d3921a6e1237c215b04cba920ebdb4e9 100644 (file)
@@ -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;
 }