from wtforms.fields import Field from . import widgets from .validators import Recaptcha __all__ = ["RecaptchaField"] class RecaptchaField(Field): """reCAPTCHA field using :class:`.Recaptcha` as its default validator. The default validator skips verification when ``current_app.testing`` is ``True``, so tests don't need a real reCAPTCHA token. When using a nonce-based Content Security Policy, pass ``nonce`` to populate the ``nonce`` attribute of the generated ``