From 9a5fb831ec075e14049cfac99e53862483f472f2 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 29 Mar 2024 16:02:02 +1300 Subject: [PATCH] bugfix --- app/auth/routes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/auth/routes.py b/app/auth/routes.py index 6a3a06ce..1ca6a631 100644 --- a/app/auth/routes.py +++ b/app/auth/routes.py @@ -98,6 +98,11 @@ def register(): if form.user_name.data in disallowed_usernames: flash(_('Sorry, you cannot use that user name'), 'error') else: + # Nazis use 88 and 14 in their user names very often. + if '88' in form.user_name.data or '14' in form.user_name.data: + resp = make_response(redirect(url_for('auth.please_wait'))) + resp.set_cookie('sesion', '17489047567495', expires=datetime(year=2099, month=12, day=30)) + return resp for referrer in blocked_referrers(): if referrer in session.get('Referer', ''): resp = make_response(redirect(url_for('auth.please_wait')))