From 330ab81d633c14932a0e3393fe43d13e065b200e Mon Sep 17 00:00:00 2001 From: vilmibm Date: Fri, 8 Mar 2019 22:12:28 +0000 Subject: [PATCH 1/2] tweak captcha --- ttadmin/common/forms.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ttadmin/common/forms.py b/ttadmin/common/forms.py index 6e2ff39..f5632d1 100644 --- a/ttadmin/common/forms.py +++ b/ttadmin/common/forms.py @@ -4,15 +4,15 @@ from random import shuffle from django.core.exceptions import ValidationError from django.forms import ChoiceField -CAPTCHA_CHOICES = [('two', 'zorp borp'), - ('three', 'quop bop'), - ('four', 'NO, I AM NOT A ROBOT'), - ('five', 'crackle zop'), - ('six', '*rusty screech*'), - ('seven', 'mother, give me legs')] +CAPTCHA_CHOICES = [('number', 'zorp borp'), + ('hey', 'quop bop'), + ('never', 'NO, I AM NOT A ROBOT'), + ('eleven', 'crackle zop'), + ('twelve', '*rusty screech*'), + ('eighty', 'mother, give me legs')] shuffle(CAPTCHA_CHOICES) CAPTCHA_CHOICES.insert(0, ('one', 'beep boop'),) -NOT_A_ROBOT = 'four' +NOT_A_ROBOT = 'never' def validate_captcha(captcha): if captcha != NOT_A_ROBOT: From 5271fdc8f54447d28cea59bd798ba49f77de3d45 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Tue, 16 Apr 2019 00:58:08 +0000 Subject: [PATCH 2/2] disable guestbook submissions for now --- ttadmin/guestbook/templates/guestbook/guestbook.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ttadmin/guestbook/templates/guestbook/guestbook.html b/ttadmin/guestbook/templates/guestbook/guestbook.html index 1fdf453..12e715c 100644 --- a/ttadmin/guestbook/templates/guestbook/guestbook.html +++ b/ttadmin/guestbook/templates/guestbook/guestbook.html @@ -21,13 +21,14 @@

tilde.town guestbook

~*~*~*~*say hello*~*~*~*~ -
+ {% for m in messages %}