From c661dd37004e0790d6b1dfdc0c73860fa0f18914 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 29 Sep 2022 12:32:49 -0400 Subject: [PATCH] clear form fields on successful signup --- signup/signup-handler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/signup/signup-handler.php b/signup/signup-handler.php index 2412a26..c40e1e9 100644 --- a/signup/signup-handler.php +++ b/signup/signup-handler.php @@ -205,6 +205,8 @@ $makeuser // temp. add to forbidden to prevent double signups (cleanup after user creation) file_put_contents("/var/signups_current", $name.PHP_EOL, FILE_APPEND); file_put_contents("/var/signups", $makeuser.PHP_EOL, FILE_APPEND); + // clear form fields + $_REQUEST["email"] = $_REQUEST["username"] = $_REQUEST["sshkey"] = $_REQUEST["interest"] = ""; } else { echo '