Skip to content

Commit

Permalink
Include CAPTCHA in HTML form generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Mar 25, 2023
1 parent eb1d4a3 commit d87a01f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/views/Forms.vue
Expand Up @@ -48,7 +48,12 @@
<input id="{{ id }}" type="checkbox" name="l" checked value="{{ l.uuid }}" />
&lt;label for=&quot;{{ id }}&quot;&gt;{{ l.name }}&lt;/label&gt;<template v-if="l.description">&lt;br /&gt;&lt;span&gt;{{ l.description }}&lt;/span&gt;</template>
&lt;/p&gt;</span></template>

<template v-if="this.settings['security.enable_captcha']">
&lt;div class=&quot;captcha&quot;&gt;
&lt;div class=&quot;h-captcha&quot; data-sitekey=&quot;{{ this.settings['security.captcha_key'] }}&quot;&gt;&lt;/div&gt;
&lt;script src=&quot;https://js.hcaptcha.com/1/api.js&quot; async defer&gt;&lt;/script&gt;
&lt;/div&gt;
</template>
&lt;p&gt;&lt;input type=&quot;submit&quot; value=&quot;{{ $t('public.sub') }}&quot; /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/form&gt;</pre>
Expand Down

0 comments on commit d87a01f

Please sign in to comment.