From ccba971d6786379d334aa75beef3068b9db81c48 Mon Sep 17 00:00:00 2001 From: rebecca Date: Fri, 30 Oct 2026 23:38:12 +0000 Subject: auth: require advanced security question to prevent spam signups --- apioforum/auth.py | 3 +++ apioforum/templates/auth/register.html | 3 +++ 2 files changed, 6 insertions(+) diff --git a/apioforum/auth.py b/apioforum/auth.py index 93aafdd..8e939c0 100644 --- a/apioforum/auth.py +++ b/apioforum/auth.py @@ -47,6 +47,7 @@ def register(): if request.method == "POST": username = request.form["username"] password = request.form["password"] + whens_8am = request.form["whens_8am"] db = get_db() err = None if not username: @@ -61,6 +62,8 @@ def register(): err = "username can't be longer than 20 characters" elif not username.isalnum(): err = "username must be alphanumeric" + elif whens_8am != "08:00": + err = "you need to enter 08:00 am, not any other time. this is a genuine spam prevention measure" if err is None: db.execute( diff --git a/apioforum/templates/auth/register.html b/apioforum/templates/auth/register.html index ed09c56..74c8c28 100644 --- a/apioforum/templates/auth/register.html +++ b/apioforum/templates/auth/register.html @@ -12,6 +12,9 @@
+ + +


-- cgit v1.2.3