]> git.ipfire.org Git - ipfire.org.git/commitdiff
auth: Fail join when first name and last name match
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 May 2025 09:26:27 +0000 (09:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 May 2025 09:26:27 +0000 (09:26 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/auth.py

index 76cc91294aa7815b450895616421b113e2edd364..d430e18d6f6f7b7ea8ef43aed825a0083b6d7d20 100644 (file)
@@ -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():