Skip to content

Commit

Permalink
Allow Recaptcha validation to be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed May 22, 2024
1 parent c6a0fa7 commit 32c6ed8
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 32c6ed8

Please sign in to comment.