fix: update Turnstile configuration and improve layout for verification

This commit is contained in:
2026-01-25 05:24:28 -05:00
parent c1784f626a
commit 9c49c21e62
+4 -6
View File
@@ -86,7 +86,9 @@
) { ) {
window.turnstile.render('.cf-turnstile', { window.turnstile.render('.cf-turnstile', {
sitekey: data.auth.cf_turnstile_site_key, sitekey: data.auth.cf_turnstile_site_key,
theme: 'dark' theme: 'dark',
size: 'flexible',
appearence: 'interaction-only'
}); });
} }
}; };
@@ -463,11 +465,7 @@
</label> </label>
{/if} {/if}
{#if data.options?.requiresVerification && data.auth?.cf_turnstile_site_key} {#if data.options?.requiresVerification && data.auth?.cf_turnstile_site_key}
<div <div class="cf-turnstile mb-1 w-full" data-sitekey={data.auth.cf_turnstile_site_key}></div>
class="mb-2 flex min-h-16.25 w-auto items-center justify-center rounded border border-neutral-700 bg-neutral-800 p-2 pb-1"
>
<div class="cf-turnstile" data-sitekey={data.auth.cf_turnstile_site_key}></div>
</div>
{/if} {/if}
<button <button
type="submit" type="submit"