Include CAPTCHA in HTML form generation.
This commit is contained in:
parent
eb1d4a3c2a
commit
d87a01fad8
1 changed files with 6 additions and 1 deletions
|
@ -48,7 +48,12 @@
|
||||||
<input id="{{ id }}" type="checkbox" name="l" checked value="{{ l.uuid }}" />
|
<input id="{{ id }}" type="checkbox" name="l" checked value="{{ l.uuid }}" />
|
||||||
<label for="{{ id }}">{{ l.name }}</label><template v-if="l.description"><br /><span>{{ l.description }}</span></template>
|
<label for="{{ id }}">{{ l.name }}</label><template v-if="l.description"><br /><span>{{ l.description }}</span></template>
|
||||||
</p></span></template>
|
</p></span></template>
|
||||||
|
<template v-if="this.settings['security.enable_captcha']">
|
||||||
|
<div class="captcha">
|
||||||
|
<div class="h-captcha" data-sitekey="{{ this.settings['security.captcha_key'] }}"></div>
|
||||||
|
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<p><input type="submit" value="{{ $t('public.sub') }}" /></p>
|
<p><input type="submit" value="{{ $t('public.sub') }}" /></p>
|
||||||
</div>
|
</div>
|
||||||
</form></pre>
|
</form></pre>
|
||||||
|
|
Loading…
Reference in a new issue