/admin/account-do.php |
---|
19,7 → 19,7 |
} |
if (!empty($password)) { |
$salt = $user->name + "sheeps"; |
$salt = $user->name . "sheeps"; |
$page->query("UPDATE Users SET Password = ?, Salt = ? WHERE ID = ?", array($page->saltAndBurn($password, $salt), $salt, $userID)); |
} |
/register-do.php |
---|
42,7 → 42,7 |
$page->redirect('register.php?error=Incorrect reCAPTCHA response'); |
} |
$salt = $username + "horses"; |
$salt = $username . "horses"; |
$args = array(2, $username, $page->saltAndBurn($password, $salt), $salt, $email, $name, 0); |
$page->query("INSERT INTO Users (AccessID, Username, Password, Salt, EmailAddress, Name, ChallengeID) VALUES (?, ?, ?, ?, ?, ?, ?)", $args); |