From d61e86a3d38e3d0c84718858a42741e5a13ec328 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 17 Feb 2015 11:03:17 +0100 Subject: [PATCH] fix #1093 --- install/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install/index.php b/install/index.php index 94cf50ac2..d514eb2a4 100755 --- a/install/index.php +++ b/install/index.php @@ -12,6 +12,7 @@ $errors = array(); $successes = array(); $final = false; +$email = ""; require_once('install_functions.php'); @@ -61,6 +62,7 @@ else if (isset($_POST['install'])) { // User informations $username = trim($_POST['username']); $password = trim($_POST['password']); + $email = trim($_POST['email']); $salted_password = sha1($password . $username . $salt); // Database informations @@ -140,8 +142,8 @@ else if (isset($_POST['install'])) { if ($continue) { - $sql = "INSERT INTO users (username, password, name, email) VALUES (?, ?, ?, '')"; - $params = array($username, $salted_password, $username); + $sql = "INSERT INTO users (username, password, name, email) VALUES (?, ?, ?, ?)"; + $params = array($username, $salted_password, $username, $email); $query = executeQuery($handle, $sql, $params); $id_user = (int)$handle->lastInsertId('users_id_seq');