Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting :ok back from Recaptcha.verify("invalid_response") #61

Open
TheFirstAvenger opened this issue Oct 7, 2020 · 1 comment
Open
Labels
Milestone

Comments

@TheFirstAvenger
Copy link

I have my test environment set up as described in the readme:

config :recaptcha,
  http_client: Recaptcha.Http.MockClient,
  secret: "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe"

but I am getting an :ok tuple back from Recaptcha.verify("invalid_response") instead of an :error tuple:

$ MIX_ENV=test iex -S mix
Erlang/OTP 22 [erts-10.7.2.3] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]

Interactive Elixir (1.10.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> Recaptcha.verify("invalid_response")
{:ok,
 %Recaptcha.Response{
   challenge_ts: "2020-10-07T19:01:22Z",
   hostname: "testkey.google.com"
 }}
@jhonathas
Copy link
Contributor

Same problem here. Any solution?

@samueljseay samueljseay added the bug label Jul 7, 2021
@samueljseay samueljseay added this to the 4.0.0 milestone Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants