mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-01 06:39:18 +00:00
fix #1093
This commit is contained in:
parent
cdee5e6570
commit
d61e86a3d3
1 changed files with 4 additions and 2 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue