From d6ae970785092124adbe48eb9a759c8c804b13a6 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 6 Sep 2019 14:34:38 -0400 Subject: Add a simple CAPTCHA to the sign up form Add a CAPTCHA to protect against automated account creation. The CAPTCHA changes whenever three new accounts are registered. Signed-off-by: Lukas Fleischer --- web/html/register.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'web/html/register.php') diff --git a/web/html/register.php b/web/html/register.php index 368999a5..a4264829 100644 --- a/web/html/register.php +++ b/web/html/register.php @@ -36,7 +36,12 @@ if (in_request("Action") == "NewAccount") { 0, in_request("CN"), in_request("UN"), - in_request("ON")); + in_request("ON"), + 0, + "", + in_request("captcha_salt"), + in_request("captcha"), + ); print $message; @@ -59,7 +64,12 @@ if (in_request("Action") == "NewAccount") { 0, in_request("CN"), in_request("UN"), - in_request("ON")); + in_request("ON"), + 0, + "", + in_request("captcha_salt"), + in_request("captcha") + ); } } else { print '

' . __("Use this form to create an account.") . '

'; -- cgit v1.2.3-24-g4f1b