disable turnstile temporary

This commit is contained in:
dyzulk
2025-12-30 19:04:52 +07:00
parent 76a8549dd7
commit cecd04dbe7
2 changed files with 8 additions and 2 deletions

View File

@@ -216,16 +216,19 @@ export default function SigninClient() {
</div> </div>
<div className="flex justify-center py-2"> <div className="flex justify-center py-2">
{/* Turnstile Disabled for Verification */}
{false && (
<Turnstile <Turnstile
siteKey={process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY || ""} siteKey={process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY || ""}
onSuccess={(token) => setTurnstileToken(token)} onSuccess={(token) => setTurnstileToken(token)}
/> />
)}
</div> </div>
{errors['cf-turnstile-response'] && <p className="mt-1 text-xs text-red-500">{errors['cf-turnstile-response']}</p>} {errors['cf-turnstile-response'] && <p className="mt-1 text-xs text-red-500">{errors['cf-turnstile-response']}</p>}
<button <button
type="submit" type="submit"
disabled={isLoading || !turnstileToken} disabled={isLoading}
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" 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')} {isLoading ? t('signing_in_button') : t('signin_button')}

View File

@@ -195,16 +195,19 @@ export default function SignupClient() {
{errors.terms && <p className="mt-1 text-xs text-red-500">{errors.terms}</p>} {errors.terms && <p className="mt-1 text-xs text-red-500">{errors.terms}</p>}
<div className="flex justify-center py-2"> <div className="flex justify-center py-2">
{/* Turnstile Disabled for Verification */}
{false && (
<Turnstile <Turnstile
siteKey={process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY || ""} siteKey={process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY || ""}
onSuccess={(token) => setTurnstileToken(token)} onSuccess={(token) => setTurnstileToken(token)}
/> />
)}
</div> </div>
{errors['cf-turnstile-response'] && <p className="mt-1 text-xs text-red-500">{errors['cf-turnstile-response']}</p>} {errors['cf-turnstile-response'] && <p className="mt-1 text-xs text-red-500">{errors['cf-turnstile-response']}</p>}
<button <button
type="submit" type="submit"
disabled={isLoading || !turnstileToken} disabled={isLoading}
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" 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')} {isLoading ? t('creating_account_button') : t('signup_button')}