From b6e82f0d425c98f814ff2948bea6716e24830760 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 12 Jun 2022 22:00:40 +0000 Subject: [PATCH] Adjust CAPTCHA --- t0txt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t0txt.py b/t0txt.py index 0713790..957219c 100644 --- a/t0txt.py +++ b/t0txt.py @@ -76,10 +76,11 @@ def new(): name = request.form.get('name', None) if name: + # TODO: fail if name field is filled out print('Name filled out:', name) captcha = request.form.get('captcha', None) - if is_web and captcha.lower() not in ['tanner', 'tanner collin', 'tannercollin', 'collin']: + if is_web and 'tanner' not in captcha.lower() and 'collin' not in captcha.lower(): print('Captcha failed:', captcha) return redirect('https://txt.t0.vc/LPPZ') else: