Skip to content

Commit

Permalink
Allow Recaptcha validation to be disabled (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
jace authored May 22, 2024
1 parent c6a0fa7 commit 7f72fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/baseframe/forms/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def __init__(
self.message_network = message_network or self.default_message_network

def __call__(self, form: WTForm, field: WTField) -> None:
if current_app.testing:
if current_app.testing or current_app.config.get('RECAPTCHA_DISABLED'):
return

if request.is_json:
Expand Down

0 comments on commit 7f72fd6

Please sign in to comment.