diff options
author | Sam Seay <sam@manuka.co> | 2016-09-08 09:36:09 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-08 09:36:09 +1200 |
commit | 8b77a3c045c81061f50f44716d60a96787203a5f (patch) | |
tree | 327005e4a38f13805d5dbb132d6f13422a41d4b5 /lib | |
parent | a35e5f82f3ff09b9c76e4924b50af559a6c07ae6 (diff) | |
download | recaptcha-2.0.1.tar.gz recaptcha-2.0.1.tar.xz |
support 1.5 and 2.x poison2.0.1
Diffstat (limited to 'lib')
-rw-r--r-- | lib/recaptcha.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/recaptcha.ex b/lib/recaptcha.ex index 30a5bd8..3108add 100644 --- a/lib/recaptcha.ex +++ b/lib/recaptcha.ex @@ -41,7 +41,7 @@ defmodule Recaptcha do {:error, Enum.map(errors, fn(error) -> atomise_api_error(error) end)} {:ok, %{"success" => true, "challenge_ts" => timestamp, "hostname" => host}} -> {:ok, %Recaptcha.Response{challenge_ts: timestamp, hostname: host}} - {:ok, %{"success" => false, "challenge_ts" => timestamp, "hostname" => host}} -> + {:ok, %{"success" => false, "challenge_ts" => _timestamp, "hostname" => _host}} -> {:error, [:challenge_failed]} end end |