philomena/lib/philomena_web/views/captcha_view.ex
2020-09-12 13:43:16 -04:00

12 lines
280 B
Elixir

defmodule PhilomenaWeb.CaptchaView do
use PhilomenaWeb, :view
# Prevent ID collisions if multiple forms are on the page.
def challenge_name(name) do
"#{name}_challenge"
end
def hcaptcha_site_key do
Application.get_env(:philomena, :hcaptcha_site_key)
end
end