11,6 → 11,7 |
$password = $_POST['password']; |
$email = $_POST['email']; |
$name = $_POST['name']; |
$salt = $name + "sheeps"; |
|
$user = $page->getUserByID($userID); |
if (($page->getLoggedInUser()->ID == $userID || $page->isUserAdmin($page->getLoggedInUser())) && $user && $page->isUserNormal($page->getLoggedInUser())) { |
19,7 → 20,7 |
} |
|
if (!empty($password)) { |
$page->query("UPDATE Users SET Password = ? WHERE ID = ?", array(sha1($password), $userID)); |
$page->query("UPDATE Users SET Password = ? WHERE ID = ?", array($page->saltAndBurn($password, $salt), $userID)); |
} |
|
if (!empty($email)) { |