Skip to content

Commit

Permalink
Merge pull request #56 from PRX/feat/captcha
Browse files Browse the repository at this point in the history
Add Turnstile captcha to the contact form
  • Loading branch information
brandonhundt authored Jun 17, 2024
2 parents 7e0dccb + 3180197 commit b75514f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<!-- JavaScript files -->
<script async src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback" defer></script>

<!-- Plausible Analytics -->
<script defer data-domain="dovetail.prx.org" src="https://plausible.io/js/plausible.js"></script>
1 change: 1 addition & 0 deletions pages/contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ image: /assets/img/og-image.jpg
<label for="textHelp">How can we help you?</label>
<textarea class="form-control" id="textHelp" name="textHelp" aria-describedby="textHelp" placeholder="Anything else you want to share?"></textarea>
</div>
<div class="cf-turnstile" data-sitekey="0x4AAAAAAAct7yXHEJttOvFy"></div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
Expand Down

0 comments on commit b75514f

Please sign in to comment.