From bf0b05064a0b99c2ae3c54118b3bdbdc22d73814 Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Fri, 13 Dec 2024 22:21:11 -0600 Subject: [PATCH] Fix registration and update register form to new render --- src/actions/users.php | 2 +- templates/register.php | 35 ++++++++++++++++++++--------------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/actions/users.php b/src/actions/users.php index 16b2503..bf68201 100644 --- a/src/actions/users.php +++ b/src/actions/users.php @@ -108,7 +108,7 @@ function register() $controlrow["verifytext"] = ""; } - $page = parsetemplate(gettemplate("register"), $controlrow); + $page = render('register', ['controlrow' => $controlrow]); } display($page, "Register", false, false, false); diff --git a/templates/register.php b/templates/register.php index ea40c97..401da9e 100644 --- a/templates/register.php +++ b/templates/register.php @@ -1,16 +1,21 @@ - - - - - - - - - - -
Username:
Usernames must be 30 alphanumeric characters or less.


Password:
Verify Password:
Passwords must be 10 alphanumeric characters or less.


Email Address:
Verify Email:{{verifytext}}


Character Class:
See Help for more information about character classes.

+
+ + + + + + + + + + + + +
Username:
Usernames must be 30 alphanumeric characters or less.


Password:
Verify Password:
Passwords must be 10 alphanumeric characters or less.


Email Address:
Verify Email:


Character Class: + +
See Help for more information about character classes.

-THEVERYENDOFYOU; -?>