From 2d140d7fc553516499361182ea3ef0c342ec9233 Mon Sep 17 00:00:00 2001 From: creme Date: Wed, 11 Aug 2021 09:42:43 +0200 Subject: [PATCH] signup: add minimum age check --- signup-handler.php | 3 +++ signup.php | 1 + 2 files changed, 4 insertions(+) diff --git a/signup-handler.php b/signup-handler.php index c09d9c2..2da22d1 100644 --- a/signup-handler.php +++ b/signup-handler.php @@ -115,6 +115,9 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) { } + if ($_REQUEST["c_age"] == "") + $message .= "
  • you must be at least 16 years old to use this service.
  • \n"; + if ($_REQUEST["iagree"] == "") $message .= "
  • you need to agree to our terms.
  • \n"; diff --git a/signup.php b/signup.php index 0b39a9d..6cecae8 100644 --- a/signup.php +++ b/signup.php @@ -49,6 +49,7 @@ include 'header.php'; signing up implies that you agree to abide by our code of conduct, no drama. be respectful. have fun. we're all trying, and we're all in this together :) +