signup: add minimum age check

This commit is contained in:
creme 2021-08-11 09:42:43 +02:00
parent 9d573db744
commit 2d140d7fc5
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
2 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,9 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
}
if ($_REQUEST["c_age"] == "")
$message .= "<li>you must be at least 16 years old to use this service.</li>\n";
if ($_REQUEST["iagree"] == "")
$message .= "<li>you need to agree to our terms.</li>\n";

View File

@ -49,6 +49,7 @@ include 'header.php';
signing up implies that you agree to abide by our <a href="/coc/" target="blank">code of conduct</a>,
no drama. be respectful. have fun. we're all trying, and we're all in this together :)
<label><input class="form-control" type="checkbox" name="c_age" value="check" /> i am at least 16 years old.</label>
<label><input class="form-control" type="checkbox" name="iagree" value="check" /> i agree! i have read and understood the terms and conditions.</label>
<input class="form-control" type="submit" value="submit">