Friendly captcha - #6546
Open
ukutaht wants to merge 11 commits into
Open
Conversation
Switch the registration and password-reset bot protection from hCaptcha to Friendly Captcha v2 for its privacy-first, adaptive (Smart mode) challenge model that lets legitimate users pass without interaction. - Verify solutions server-side against the global siteverify endpoint using X-API-Key header auth and a JSON body. - Configure via FRIENDLY_CAPTCHA_SITEKEY and FRIENDLY_CAPTCHA_API_KEY. - Gate the form submit button until the widget completes (re-disabling on error/expire), as recommended by Friendly Captcha.
Drop the per-form attribution slot and render a single shared attribution inside the widget component, simplifying both call sites.
|
ukutaht
marked this pull request as ready for review
July 28, 2026 09:36
cnkk
reviewed
Jul 28, 2026
| phx-update={if @live?, do: "ignore"} | ||
| id="frc-captcha-script" | ||
| type="module" | ||
| src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/sdk@1/site.min.js" |
Member
There was a problem hiding this comment.
wdyt about self hosting instead, see https://developer.friendlycaptcha.com/docs/v2/getting-started/install#using-the-scripts-without-a-cdn-ie-self-hosting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Replaces hCaptcha with invisible Friendly Captcha. Due to the 'invisible' part, some frontend complexity is necessarily added.
NB⚠️ Do not merge. Requires Friendly Captcha credentials to be set up on prod before deploying.
Tests
This part is manually tested.
Changelog
Documentation
Dark mode