Change to non-interactive turnstile (#1678)

This commit is contained in:
Prospector
2024-04-18 16:36:26 -07:00
committed by GitHub
parent 6808d270a7
commit 5a166d2455
5 changed files with 43 additions and 9 deletions

View File

@@ -5,7 +5,6 @@
<template v-if="step === 'choose_method'">
<p>
{{ formatMessage(methodChoiceMessages.description) }}
<NuxtTurnstile ref="turnstile" v-model="token" class="turnstile" />
</p>
<div class="iconified-input">
@@ -23,7 +22,14 @@
/>
</div>
<button class="btn btn-primary centered-btn" @click="recovery">
<NuxtTurnstile
ref="turnstile"
v-model="token"
class="turnstile"
:options="{ theme: $colorMode.value === 'light' ? 'light' : 'dark' }"
/>
<button class="btn btn-primary centered-btn" :disabled="!token" @click="recovery">
<SendIcon /> {{ formatMessage(methodChoiceMessages.action) }}
</button>
</template>