mirror of https://git.envs.net/envs/site.git
add email confirm field
This commit is contained in:
parent
854bb3f866
commit
8548f25242
|
@ -63,11 +63,14 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
|
|||
|
||||
// Check the e-mail address.
|
||||
$email = trim($_REQUEST["email"]);
|
||||
$emailconfirm = trim($_REQUEST["emailconfirm"]);
|
||||
if ($email == "")
|
||||
$message .= "<li>fill in your email address</li>\n";
|
||||
else {
|
||||
if (!filter_var($email, FILTER_VALIDATE_EMAIL))
|
||||
$message .= "<li>Invalid email format</li>\n";
|
||||
if ($email != $emailconfirm)
|
||||
$message .= "<li>email not matching</li>\n";
|
||||
elseif (!filter_var($email, FILTER_VALIDATE_EMAIL))
|
||||
$message .= "<li>invalid email format</li>\n";
|
||||
|
||||
elseif ($name != "" && forbidden_email($email)) {
|
||||
$user_ip = getUserIpAddr();
|
||||
|
|
30
signup.php
30
signup.php
|
@ -12,7 +12,7 @@ include 'header.php';
|
|||
<pre class="clean"><strong><a href="/">< back</a></strong></pre>
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
<div id="main" style="padding-bottom: 4em;">
|
||||
<div class="block">
|
||||
<pre>
|
||||
<h1><em>Signup</em></h1>
|
||||
|
@ -25,18 +25,19 @@ fill out this form and i'll get back to you with your account informations.
|
|||
|
||||
<?php include 'signup-mailer.php'; ?>
|
||||
|
||||
<pre><form method="post"><label>desired username:
|
||||
<input class="form-control" name="username" value="<?=$_REQUEST["username"] ?? ""?>" type="text" maxlength="32" style="width: 300px;"></label>
|
||||
|
||||
<label>e-mail for account informations:
|
||||
<input class="form-control" name="email" value="<?=$_REQUEST["email"] ?? ""?>" type="text" style="width: 300px;"></label>
|
||||
|
||||
<label>what interests you about envs.net?
|
||||
<textarea class="form-control" name="interest" cols="80" rows="8"><?=$_REQUEST["interest"] ?? ""?></textarea></label>
|
||||
|
||||
<label>ssh public key:
|
||||
<textarea class="form-control" name="sshkey" cols="80" rows="8"><?=$_REQUEST["sshkey"] ?? ""?></textarea></label>
|
||||
|
||||
<form method="post"><label>desired username:<br />
|
||||
<input class="form-control" name="username" value="<?=$_REQUEST["username"] ?? ""?>" type="text" maxlength="32" style="width: 260px;"></label>
|
||||
<br /><br />
|
||||
<label>e-mail for account informations:<br />
|
||||
<input class="form-control" name="email" value="<?=$_REQUEST["email"] ?? ""?>" type="text" style="width: 260px;">
|
||||
<input class="form-control" name="emailconfirm" value="<?=$_REQUEST["emailconfirm"] ?? ""?>" type="text" style="width: 260px;"></label>
|
||||
<br /><br />
|
||||
<label>what interests you about envs.net?<br />
|
||||
<textarea class="form-control" name="interest" rows="8" style="width: 560px;"><?=$_REQUEST["interest"] ?? ""?></textarea></label>
|
||||
<br /><br />
|
||||
<label>ssh public key:<br />
|
||||
<textarea class="form-control" name="sshkey" rows="8" style="width: 560px;"><?=$_REQUEST["sshkey"] ?? ""?></textarea></label>
|
||||
<pre>
|
||||
if you don't have a key, don't worry! check out our <a href="https://help.envs.net/help/#ssh" target="blank">help page</a>
|
||||
to ssh keys and make sure that you only put your pubkey here.
|
||||
|
||||
|
@ -44,8 +45,9 @@ signing up implies that you agree to abide by our <a href="/coc/" target="blank"
|
|||
no drama. be respectful. have fun. we're all trying, and we're all in this together :)
|
||||
|
||||
<input class="form-control" type="submit" value="submit">
|
||||
</form>
|
||||
</pre>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include 'footer.php'; ?>
|
||||
|
|
Loading…
Reference in New Issue