Re-enable Turnstile after production verification

This commit is contained in:
dyzulk
2025-12-30 19:31:16 +07:00
parent cecd04dbe7
commit a8d86aee62
2 changed files with 2 additions and 8 deletions

View File

@@ -216,19 +216,16 @@ export default function SigninClient() {
</div>
<div className="flex justify-center py-2">
{/* Turnstile Disabled for Verification */}
{false && (
<Turnstile
siteKey={process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY || ""}
onSuccess={(token) => setTurnstileToken(token)}
/>
)}
</div>
{errors['cf-turnstile-response'] && <p className="mt-1 text-xs text-red-500">{errors['cf-turnstile-response']}</p>}
<button
type="submit"
disabled={isLoading}
disabled={isLoading || !turnstileToken}
className="bg-brand-500 shadow-md hover:bg-brand-600 w-full rounded-lg px-4 py-3 text-sm font-medium text-white transition disabled:opacity-50"
>
{isLoading ? t('signing_in_button') : t('signin_button')}

View File

@@ -195,19 +195,16 @@ export default function SignupClient() {
{errors.terms && <p className="mt-1 text-xs text-red-500">{errors.terms}</p>}
<div className="flex justify-center py-2">
{/* Turnstile Disabled for Verification */}
{false && (
<Turnstile
siteKey={process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY || ""}
onSuccess={(token) => setTurnstileToken(token)}
/>
)}
</div>
{errors['cf-turnstile-response'] && <p className="mt-1 text-xs text-red-500">{errors['cf-turnstile-response']}</p>}
<button
type="submit"
disabled={isLoading}
disabled={isLoading || !turnstileToken}
className="bg-brand-500 shadow-md hover:bg-brand-600 w-full rounded-lg px-4 py-3 text-sm font-medium text-white transition disabled:opacity-50"
>
{isLoading ? t('creating_account_button') : t('signup_button')}