mirror of
https://github.com/dyzulk/trustlab.git
synced 2026-01-26 13:32:06 +07:00
disable turnstile temporary
This commit is contained in:
@@ -216,16 +216,19 @@ 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 || !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"
|
||||
>
|
||||
{isLoading ? t('signing_in_button') : t('signin_button')}
|
||||
|
||||
@@ -195,16 +195,19 @@ 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 || !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"
|
||||
>
|
||||
{isLoading ? t('creating_account_button') : t('signup_button')}
|
||||
|
||||
Reference in New Issue
Block a user