Don't include csrf_token in form.data
This commit is contained in:
parent
3b50b948a0
commit
ac4cf5279e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user