Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Include CAPTCHA in HTML form generation.

Kailash Nadhd87a01fad849
diff --git a/frontend/src/views/Forms.vue b/frontend/src/views/Forms.vue
index 4dda2783..5afb3009 100644
--- a/frontend/src/views/Forms.vue
+++ b/frontend/src/views/Forms.vue
@@ -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>