added contact info to signup, added CoC and >13 age checkbox (script doesn't check it yet)
This commit is contained in:
parent
5b431b9f7f
commit
31ad177337
|
@ -3,7 +3,8 @@ include("/var/www/tilde.cafe/inc/header.html");
|
|||
if($_POST==array()){
|
||||
?>
|
||||
<p>We'll contact you when your account is ready.<br/>
|
||||
Don't want to use email? contact an admin directly.</p>
|
||||
Don't want to use email? contact an admin directly<br/>
|
||||
we're available on IRC at <a href="ircs://irc.libera.chat:6697/tilde.cafe">#tilde.cafe on libera.chat</a> and <a href="ircs://irc.tilde.chat:6697/cafe">#cafe on tilde.chat</a>).</p>
|
||||
<form method="post">
|
||||
<p>Username:</p>
|
||||
<input type="text" name="username" required="required" maxlength="20" width="20ch" pattern="[a-z][-0-9a-z_]{2,}" placeholder="MyUserName"/><br/>
|
||||
|
@ -13,11 +14,14 @@ Don't want to use email? contact an admin directly.</p>
|
|||
<!-- maximum length of 400 should allow even 4096-bit rsa keys, with a short comment, more than that is ridiculous -->
|
||||
<input style="max-width:100%" type="text" name="sshkey" required="required" pattern="ssh-(rsa|(ed25519|ecdsa)(-sk)?) [0-9a-zA-Z+/=]{60,}( .*)?" size="100" placeholder="ssh-ed25519 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA MyUserName@home_pc"/><br/>
|
||||
<p>Reason (why do you want/need an account?):</p><textarea cols="70" rows="2" name="reason" maxlength="140" required="required"></textarea><br/>
|
||||
<br/>
|
||||
<label>I am at least 13 years old, and agree to follow the <a href="https://tilde.cafe/wiki/code-of-conduct" target="_blank">Code of Conduct</a>: <input type="checkbox" value="legal"/></label><br/>
|
||||
<br/>
|
||||
<input type="submit" value="Sign Up"/>
|
||||
</form>
|
||||
<?php
|
||||
}else{
|
||||
$username=$_POST["username"];$email=$_POST["email"];$reason=$_POST["reason"];$sshkey=$_POST["sshkey"];
|
||||
$username=$_POST["username"];$email=$_POST["email"];$reason=$_POST["reason"];$sshkey=$_POST["sshkey"];$legal=$_POST["legal"];
|
||||
$nl="\r\n";
|
||||
$makeuser="makeuser ".$username." ".$email." \"".$sshkey."\"";
|
||||
$message="username: ".$username.$nl."email: ".$email.$nl."reason: ".$reason.$nl.$nl.$makeuser;
|
||||
|
|
2
src/wiki
2
src/wiki
|
@ -1 +1 @@
|
|||
Subproject commit 6d0cd753982d45255e872f9d69e0fab7cf3e1dee
|
||||
Subproject commit 8851ad3fa0f12ab66d495302c1d30977bfc1bf01
|
Loading…
Reference in New Issue