Skip to content
Browse files

fix codestyle

  • Loading branch information...
marcelb98 committed Mar 15, 2019
1 parent 3384f04 commit 111bfc2b1253afa566f9a52cd03071bf73480001
Showing with 4 additions and 1 deletion.
  1. +4 −1 sipa/
@@ -71,6 +71,7 @@ def __call__(self, *args, **kwargs):
return super().__call__(
*args, readonly=True, **kwargs)

class SpamCheckField(StringField):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@@ -81,11 +82,13 @@ def __call__(self, *args, **kwargs):
kwargs['autocomplete'] = 'off'
return super().__call__(*args, **kwargs)

class SpamProtectedForm(FlaskForm):
# Adds a honypot for bots to the form.
# This field must not be filled out to submit the form.
# We're using 'website' as the field-name since we won't give bots a hint.
website = SpamCheckField(label="", validators=[Length(0,0,"You seem to like honey.")])
website = SpamCheckField(label="", validators=[Length(0, 0, "You seem to like honey.")])

class ContactForm(SpamProtectedForm):
email = ReadonlyStringField(

0 comments on commit 111bfc2

Please sign in to comment.
You can’t perform that action at this time.