diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2019-09-06 20:34:38 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2019-10-05 19:44:00 +0200 |
commit | d6ae970785092124adbe48eb9a759c8c804b13a6 (patch) | |
tree | b0845b1633e9228dbbd4fed35169bf990c1e292f /web/html | |
parent | a66c7fa6156b9babb81cd6a1143737a2a193634b (diff) | |
download | aur-d6ae970785092124adbe48eb9a759c8c804b13a6.tar.gz aur-d6ae970785092124adbe48eb9a759c8c804b13a6.tar.xz |
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 <lfleischer@archlinux.org>
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/register.php | 14 |
1 files changed, 12 insertions, 2 deletions
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 '<p>' . __("Use this form to create an account.") . '</p>'; |