mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
12 lines
280 B
Elixir
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
|