Include CAPTCHA in HTML form generation.

This commit is contained in:
Kailash Nadh 2023-03-25 11:20:57 +05:30
parent eb1d4a3c2a
commit d87a01fad8

View file

@ -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>