aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSam Seay <sam@manuka.co>2016-09-08 09:36:09 +1200
committerGitHub <noreply@github.com>2016-09-08 09:36:09 +1200
commit8b77a3c045c81061f50f44716d60a96787203a5f (patch)
tree327005e4a38f13805d5dbb132d6f13422a41d4b5 /lib
parenta35e5f82f3ff09b9c76e4924b50af559a6c07ae6 (diff)
downloadrecaptcha-8b77a3c045c81061f50f44716d60a96787203a5f.tar.gz
recaptcha-8b77a3c045c81061f50f44716d60a96787203a5f.tar.xz
support 1.5 and 2.x poison2.0.1
Diffstat (limited to 'lib')
-rw-r--r--lib/recaptcha.ex2
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