summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2019-09-06 20:34:38 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2019-10-05 19:44:00 +0200
commitd6ae970785092124adbe48eb9a759c8c804b13a6 (patch)
treeb0845b1633e9228dbbd4fed35169bf990c1e292f /web/html
parenta66c7fa6156b9babb81cd6a1143737a2a193634b (diff)
downloadaur-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.php14
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>';