From 900db5d4dfaa2980c4fa6cfaf5bbe8fc91cf6bd0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 7 Sep 2008 14:58:19 +0000 Subject: Series: Hashed admin password [15] Refs #53 --- series/core/trunk/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'series/core') diff --git a/series/core/trunk/install.php b/series/core/trunk/install.php index 750dce8..86be5ee 100644 --- a/series/core/trunk/install.php +++ b/series/core/trunk/install.php @@ -113,7 +113,7 @@ if (!isset($_GET['submit'])) $sql[0] = "INSERT INTO config (name,value) VALUES (\"siteName\",\"" . mysql_real_escape_string($_POST['siteName']) . "\")"; $sql[1] = "INSERT INTO config (name,value) VALUES (\"adminUser\",\"" . mysql_real_escape_string($_POST['adminUser']) . "\")"; - $sql[2] = "INSERT INTO config (name,value) VALUES (\"adminPass\",\"" . mysql_real_escape_string($_POST['adminPass']) . "\")"; + $sql[2] = "INSERT INTO config (name,value) VALUES (\"adminPass\",\"" . mysql_real_escape_string(md5($_POST['adminPass'])) . "\")"; foreach ($sql as $name => $value) { -- cgit 1.4.1