From a2aee59e7fd364c8bc7998dac3686ebd8e478190 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:56:18 +1300 Subject: [PATCH] make recaptcha work with nonce --- app/auth/recaptcha3.py | 12 ++++++------ app/static/structure.css | 3 +-- app/static/structure.scss | 3 +-- interests.txt | 9 ++++++++- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/app/auth/recaptcha3.py b/app/auth/recaptcha3.py index 6a7ea5bd..3800672f 100644 --- a/app/auth/recaptcha3.py +++ b/app/auth/recaptcha3.py @@ -1,6 +1,6 @@ import logging import requests -from flask import Markup, current_app, request +from flask import Markup, current_app, request, session from wtforms import ValidationError from wtforms.fields import HiddenField from wtforms.widgets import HiddenInput @@ -8,8 +8,8 @@ from wtforms.widgets import HiddenInput logger = logging.getLogger(__name__) RECAPTCHA_TEMPLATE = ''' - - + - +