def validate_csrf_token(self, form, field):
        if field.current_token != field.data:
            raise ValidationError(field.gettext('Invalid CSRF Token'))
Override this method to provide custom CSRF validation logic.
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/wtforms/csrf/core.py/CSRF.validate_csrf_token