Don't include csrf_token in form.data

This commit is contained in:
richard-dds 2018-08-14 15:58:18 -04:00
parent 3b50b948a0
commit ac4cf5279e

View File

@ -6,3 +6,9 @@ class ValidatedForm(FlaskForm):
"""Performs any applicable extra validation. Must """Performs any applicable extra validation. Must
return True if the form is valid or False otherwise.""" return True if the form is valid or False otherwise."""
return True return True
@property
def data(self):
_data = super().data
_data.pop("csrf_token", None)
return _data