From bf941d7ce78cf0be9f852e994a17162cfacba3ba Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 8 May 2025 09:26:27 +0000 Subject: [PATCH] auth: Fail join when first name and last name match Signed-off-by: Michael Tremer --- src/web/auth.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/web/auth.py b/src/web/auth.py index 76cc9129..d430e18d 100644 --- a/src/web/auth.py +++ b/src/web/auth.py @@ -96,6 +96,11 @@ class JoinHandler(base.AnalyticsMixin, base.BaseHandler): if honey: raise tornado.web.HTTPError(503) + # Fail if first name and last name match + # Some bots don't seem to be very creative when filling in the form + if first_name == last_name: + raise tornado.web.HTTPError(503) + # Register account try: with self.db.transaction(): -- 2.47.3