Closed tporto closed 4 years ago
@tporto The issue is Jason isn't set as the default (even though the Readme says otherwise). So you need to explicitly set your json_library in your config like so
config :recaptcha,
public_key: {:system, "RECAPTCHA_PUBLIC_KEY"},
secret: {:system, "RECAPTCHA_PRIVATE_KEY"},
json_library: Jason
Hm, it should be set as a default. That's a bug. And PRs are more than welcome! 👍
@sobolevn PR https://github.com/samueljseay/recaptcha/pull/53 to set Jason as the json library in the even one isn't set in the config.
`json = Application.get_env(:recaptcha, :json_library)