mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Fix broken captcha validation when field is empty and we use WTForms 3 (#988)
This commit is contained in:
parent
d324edfc1a
commit
1a90e4cdd8
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ class ProjectForm(EditProjectForm):
|
||||||
|
|
||||||
class ProjectFormWithCaptcha(ProjectForm):
|
class ProjectFormWithCaptcha(ProjectForm):
|
||||||
captcha = StringField(
|
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):
|
def validate_captcha(form, field):
|
||||||
|
|
Loading…
Reference in a new issue