diff --git a/tildetown-py/cgi.py b/tildetown-py/cgi.py index 85a677a..ea48cea 100644 --- a/tildetown-py/cgi.py +++ b/tildetown-py/cgi.py @@ -66,8 +66,8 @@ def post_guestbook(): message = request.form['message'][0:400] name = request.form['name'][0:140] captcha = request.form['hmm'] - print(captcha) - save_post(name, message) + if captcha == "scriz": + save_post(name, message) return redirect("/guestbook") @app.route('/helpdesk', methods=['GET']) diff --git a/tildetown-py/templates/guestbook.html b/tildetown-py/templates/guestbook.html index 762b31b..529d045 100644 --- a/tildetown-py/templates/guestbook.html +++ b/tildetown-py/templates/guestbook.html @@ -18,7 +18,7 @@ - + yeah