diff --git a/login/parts/username.php b/login/parts/username.php
index 0372868..9b31f92 100644
--- a/login/parts/username.php
+++ b/login/parts/username.php
@@ -25,7 +25,7 @@ $_SESSION['check'] = "username";
- get("Create Account"); ?>
+ &redirect=" class="btn btn-link mr-2">get("Create Account"); ?>
diff --git a/signup/index.php b/signup/index.php
index 9a2a1d5..2af5460 100644
--- a/signup/index.php
+++ b/signup/index.php
@@ -21,6 +21,8 @@ function showHTML($errormsg = null, $genform = true, $noformcontent = "", $title
$form->addInput("password", "", "password", true, null, null, "Password", "fas fa-lock", 6, $SETTINGS['min_password_length'], 255, "", $Strings->build("Your password must be at least {n} characters long.", ["n" => $SETTINGS['min_password_length']], false));
$form->addInput("email", "", "email", false, null, null, "Email", "fas fa-envelope", 6, 5, 255, "", $Strings->get("That email address doesn't look right.", false));
$form->addInput("name", "", "text", true, null, null, "Name", "fas fa-user", 6, 2, 200, "", $Strings->get("Enter your name.", false));
+ $form->addHiddenInput("code", $_GET["code"]);
+ $form->addHiddenInput("redirect", $_GET["redirect"]);
if (!empty($SETTINGS['tos_url'])) {
$form->addInput("agree_tos", "1", "checkbox", true, null, null, "I agree to the terms of service");
@@ -153,10 +155,12 @@ if (empty($_POST['name'])) {
$userid = User::add($_POST['username'], $_POST['password'], $_POST['name'], (filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ? $_POST['email'] : null));
$signinstr = $Strings->get("sign in", false);
+$redirect = urlencode($_POST["redirect"]);
+$code = urlencode($_POST["code"]);
showHTML(null, false, <<
END