clear form fields on successful signup
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Ben Harris 2022-09-29 12:32:49 -04:00
parent 913827fb51
commit c661dd3700
1 changed files with 2 additions and 0 deletions

View File

@ -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 '<div class="alert alert-danger" role="alert">
something went wrong... please send an email to <a href="mailto:sudoers@tilde.team">sudoers@tilde.team</a> with details of what happened