Packages

A simple reCaptcha package for Elixir applications, provides verification and templates for rendering forms with the reCaptcha widget.

Current section

Files

Jump to
nlwstein_recaptcha lib recaptcha response.ex
Raw

lib/recaptcha/response.ex

defmodule Recaptcha.Response do
@moduledoc """
A struct representing the successful recaptcha response from the reCAPTCHA API.
"""
defstruct challenge_ts: "", hostname: ""
@type t :: %__MODULE__{challenge_ts: String.t(), hostname: String.t()}
end