philomena/lib/philomena_web/views/captcha_view.ex

13 lines
280 B
Elixir
Raw Permalink Normal View History

2019-11-13 17:28:02 +01:00
defmodule PhilomenaWeb.CaptchaView do
use PhilomenaWeb, :view
2020-09-12 19:43:16 +02:00
# 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
2019-11-13 17:28:02 +01:00
end