From: Michael Tremer Date: Thu, 8 May 2025 09:26:27 +0000 (+0000) Subject: auth: Fail join when first name and last name match X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf941d7ce78cf0be9f852e994a17162cfacba3ba;p=ipfire.org.git auth: Fail join when first name and last name match Signed-off-by: Michael Tremer --- 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():