Update register.php

Signed-off-by: Aleksandar 'The Cobra' Widulski <thecobra@riseup.net>
This commit is contained in:
Aleksandar 'The Cobra' Widulski 2022-06-01 20:25:42 -04:00
parent d8caaf010e
commit 88143041a5
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 5 additions and 5 deletions

View File

@ -98,7 +98,7 @@
<span class="red">* Required field</span>
<form method="post" action="' . htmlspecialchars($_SERVER["PHP_SELF"]) . '">
Username:
<input type="text" name="username" value="<?php echo $username; ?>">
<input type="text" name="username">
<span class="red">* <?php echo $username_err; ?></span><br>
Password:
@ -110,13 +110,13 @@
<span class="red">* <?php echo $password1_err; ?></span><br>
E-mail <span class="red">* <?php echo $email_err; ?></span><br>
<input type="text" name="email" value="<?php echo $email; ?>"><br>
<input type="text" name="email"><br>
SSH public keys (newline separated) <span class="red">* <?php echo $ssh_err; ?></span><br>
<textarea name="ssh" rows="3" cols="50" value="<?php echo $ssh; ?>"></textarea><br>
<textarea name="ssh" rows="3" cols="50"></textarea><br>
Why do you want to join? <span class="red">* <?php echo $reason_err; ?></span><br>
<textarea name="joinreason" rows="8" cols="50" value="<?php echo $reason; ?>"></textarea><br>
<textarea name="joinreason" rows="8" cols="50"></textarea><br>
<br>
What services do you want? (You can always request an account later)<br>
@ -157,7 +157,7 @@
if (isset($_POST['jitsi'])) $use_jitsi = true;
if (isset($_POST['nextcloud'])) $use_nextcloud = true;
$to = "root@vern.cc";
$subject = "New registration request from " . $username;
$subject = "New registration request from " . $username . "<" . $email . ">";
$message = "Hello Administrators,\nSomeone has requested a membership. Please view the details below and decide if it is worth approving.\n\nSSH keys:\n" . $ssh . "\n\nRequested username: $username\nRequested services: Tilde";
if ($use_matrix) $message .= ", Matrix";
if ($use_fedi) $message .= ", Mastodon";