philomena/lib/philomena_web/templates/captcha/_captcha.html.heex
2024-06-01 23:50:36 -04:00

9 lines
358 B
Text

<%= if is_nil(@conn.assigns.current_user) do %>
<% challenge = challenge_name(@name) %>
<div class="field js-captcha-box">
<br />
<%= checkbox(:captcha, challenge, class: "js-captcha", value: 0, autocomplete: "off", data: [sitekey: hcaptcha_site_key()]) %>
<%= label(:captcha, challenge, "I am not a robot!") %>
<br />
</div>
<% end %>