diff --git a/Rocksolid_Light/rocksolid/post.php b/Rocksolid_Light/rocksolid/post.php index 61d57da..63a721b 100644 --- a/Rocksolid_Light/rocksolid/post.php +++ b/Rocksolid_Light/rocksolid/post.php @@ -206,6 +206,23 @@ if ($type == "post") { } else { $_SESSION['pass'] = true; $logged_in = true; + $name = trim($name); + $authkey = password_hash($name . $keys[0] . get_user_config($name, 'encryptionkey'), PASSWORD_DEFAULT); + $pkey = hash('crc32', get_user_config($name, 'encryptionkey')); + set_user_config(strtolower($name), "pkey", $pkey); +?> + +'; if (! isset($name) && $CONFIG['anonuser']) $name = $CONFIG['anonusername']; - if (isset($form_noname) && $form_noname === true) { - echo htmlspecialchars($name); - } else { echo ''; + file_put_contents($debug_log, "\n" . format_log_date() . " DEBUG post.php AUTH SET for: " . $name, FILE_APPEND); } else { echo 'size="40" maxlength="40">'; + file_put_contents($debug_log, "\n" . format_log_date() . " DEBUG post.php AUTH NOT SET for: " . $name, FILE_APPEND); } if ($CONFIG['anonuser']) echo ' or "' . $CONFIG['anonusername'] . '" with no password'; - } echo '