recaptcha
recaptcha copied to clipboard
A simple reCaptcha 2 library for Elixir applications.
I'm struggling to get this to work with Phoenix Live View. The live view submit handler is called before the recaptcha javascript can go through its sequence and update the...
Apparently this line: https://github.com/samueljseay/recaptcha/blob/71cd746be987f6834c1a933f5d2f934350e55060/lib/recaptcha.ex#L11 triggers the following warning: warning: Application.get_env/3 is discouraged in the module body, use Application.compile_env/3 instead => => # lib/recaptcha.ex:11: Recaptcha
Adds: 1. Support for the current version of Elixir + Erlang/OTP (1.14/25) 2. Moves CI to GitHub Actions, with addition of Hex package publishing (simply runs `mix hex.publish --yes`, requires...
When calling `Recaptcha.verify` with the `remote_ip` option, `Recaptcha.Http.MockClient` passes the request through to the real HTTP client (due to exact matching on the query params), so even a verification using...
Normally an "invalid-input-response" error from reCAPTCHA causes the verify function to return `{:error, [:invalid_input_response]}`. However, when using the feature of the `MockClient` where the response `"invalid_response"` intentionally causes an error,...
This PR adds basic support for Recaptcha v3 as requested in #67 while maintaining compatibility with v2 It simply adds the `action` and `score` fields to the response model.
Hi, Maybe I'm wrong, but I did not see the reCaptcha Entreprise support (https://cloud.google.com/recaptcha-enterprise). If I understand correctly, the backend is a bit different: only a project_id and a public...
There seem to be no way to pass some important params like e. g. `expired-callback` or `error-callback`.
No clause to handle android's package_name response instead of hostname.