diff --git a/pages/users.php b/pages/users.php index 9b8e9bf..2565b01 100644 --- a/pages/users.php +++ b/pages/users.php @@ -17,15 +17,11 @@ if(@$_REQUEST['action'] == 'genpw' && @$_REQUEST['userid'] != '') { - $SALT = md5(rand(1111, 9999)); $NEWPW = generateRandomString(10); $statement = $RUNTIME['PDO']->prepare('UPDATE auth SET passwordHash = :PasswordHash WHERE UUID = :PrincipalID'); $statement->execute(['PasswordHash' => password_hash($NEWPW, PASSWORD_ARGON2ID), 'PrincipalID' => $_REQUEST['userid']]); - $statement = $RUNTIME['PDO']->prepare('UPDATE auth SET passwordSalt = :passwordSalt WHERE UUID = :PrincipalID'); - $statement->execute(['passwordSalt' => $SALT, 'PrincipalID' => $_REQUEST['userid']]); - $HTML->ReplaceSeitenInhalt("%%MESSAGE%%", '