From: Thomas Citharel Date: Tue, 17 Feb 2015 10:03:17 +0000 (+0100) Subject: fix #1093 X-Git-Tag: 1.9.1alpha1~16 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=d61e86a3d38e3d0c84718858a42741e5a13ec328;p=github%2Fwallabag%2Fwallabag.git fix #1093 --- diff --git a/install/index.php b/install/index.php index 94cf50ac..d514eb2a 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');