diff options
author | Samuel Seay <sam@manuka.co> | 2016-09-05 20:57:27 +1200 |
---|---|---|
committer | Samuel Seay <sam@manuka.co> | 2016-09-05 20:57:27 +1200 |
commit | 29813771b6407683d2ad1c6a11ea0586add5dcd7 (patch) | |
tree | 642370dd2d0ca1e8a78d9d8a8bb0ec86d0607e0b /lib/recaptcha.ex | |
parent | c5e266b8d151d74a6e53aa010b2cf6663ef8228c (diff) | |
download | recaptcha-29813771b6407683d2ad1c6a11ea0586add5dcd7.tar.gz recaptcha-29813771b6407683d2ad1c6a11ea0586add5dcd7.tar.xz |
Don't compile application environment config.
Diffstat (limited to 'lib/recaptcha.ex')
-rw-r--r-- | lib/recaptcha.ex | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/recaptcha.ex b/lib/recaptcha.ex index ed7e9b7..9e6be0f 100644 --- a/lib/recaptcha.ex +++ b/lib/recaptcha.ex @@ -5,7 +5,6 @@ defmodule Recaptcha do See the [documentation](https://developers.google.com/recaptcha/docs/verify) for more details. """ - @secret Application.get_env(:recaptcha, :secret) @http_client Application.get_env(:recaptcha, :http_client, Recaptcha.Http) @doc """ @@ -47,7 +46,7 @@ defmodule Recaptcha do defp request_body(response, options) do body_options = Keyword.take(options, [:remote_ip, :secret]) - application_options = [secret: @secret] + application_options = [secret: Application.get_env(:recaptcha, :secret)] # override application secret with options secret if it exists application_options |