diff options
author | Sam Seay <sam@manuka.co> | 2016-09-01 09:43:23 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-01 09:43:23 +1200 |
commit | 3b5120b087182cb96a1a2082a5fb149276e45304 (patch) | |
tree | 53f44594fbac8a78ddf7d1fec99779ba310f4e00 /config/config.exs | |
parent | 7ff101f0fa5aaf52df07d37584472521c4b3cc55 (diff) | |
download | recaptcha-3b5120b087182cb96a1a2082a5fb149276e45304.tar.gz recaptcha-3b5120b087182cb96a1a2082a5fb149276e45304.tar.xz |
Feature/v2 rewrite (#7)
Rewrite of the API.
* Change the copyright holder since its a rewrite.
* Bump dependencies to their latest versions.
* Revision of the README to document the new API
* Break config up into keyword list (no longer a map)
* A rewrite of the recaptcha verify API and move of templating into Recaptcha.Template
* Add tests and credo for code style
* Remove exception raising method calls (`HTTPoison.post!` and `Poison.decode!`)
* Change Elixir version to 1.2 for `with` support.
Diffstat (limited to 'config/config.exs')
-rw-r--r-- | config/config.exs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/config/config.exs b/config/config.exs index a87116e..3c34501 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,7 +1,9 @@ use Mix.Config -config :recaptcha, :api_config, - %{ verify_url: "https://www.google.com/recaptcha/api/siteverify", - public_key: "YOUR_PUBLIC_KEY", - private_key: "YOUR_PRIVATE_KEY" - } +config :recaptcha, + verify_url: "https://www.google.com/recaptcha/api/siteverify", + timeout: 5000, + public_key: System.get_env("RECAPTCHA_PUBLIC_KEY"), + secret: System.get_env("RECAPTCHA_PRIVATE_KEY") + +import_config "#{Mix.env}.exs" |