diff options
Diffstat (limited to 'lib/recaptcha.ex')
-rw-r--r-- | lib/recaptcha.ex | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/recaptcha.ex b/lib/recaptcha.ex index 3108add..0757785 100644 --- a/lib/recaptcha.ex +++ b/lib/recaptcha.ex @@ -5,6 +5,9 @@ defmodule Recaptcha do See the [documentation](https://developers.google.com/recaptcha/docs/verify) for more details. """ + + alias Recaptcha.Config + @http_client Application.get_env(:recaptcha, :http_client, Recaptcha.Http) @doc """ @@ -48,7 +51,7 @@ defmodule Recaptcha do defp request_body(response, options) do body_options = Keyword.take(options, [:remote_ip, :secret]) - application_options = [secret: Application.get_env(:recaptcha, :secret)] + application_options = [secret: Config.get_env(:recaptcha, :secret)] # override application secret with options secret if it exists application_options |