Fix broken captcha validation when field is empty and we use WTForms 3 (#988)

This commit is contained in:
Glandos 2022-01-25 22:26:56 +01:00 committed by GitHub
parent d324edfc1a
commit 1a90e4cdd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,7 +247,7 @@ class ProjectForm(EditProjectForm):
class ProjectFormWithCaptcha(ProjectForm):
captcha = StringField(
_("Which is a real currency: Euro or Petro dollar?"),
_("Which is a real currency: Euro or Petro dollar?"), default=""
)
def validate_captcha(form, field):