web-next: paridad de los campos de login con el tema Django
- Turnstile: quitar clases Tailwind del wrapper (my-3/flex/justify-center) → estilo inline neutral centrado, como la web Django. - login/register/recover: el boton ya NO arranca deshabilitado (gris) por falta de captcha; se ve activo como en Django. El captcha lo sigue validando el servidor (devuelve captchaFailed). Se quita el SITE_KEY cliente ya innecesario. - reset-password: pagina que habia quedado sin migrar (usaba nw-btn/ nw-input/mx-auto/text-amber) → PageShell + middle-center-table + inputs planos + recover-button + alert-message, igual que el resto del flujo. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,6 @@ import { useRouter } from '@/i18n/navigation'
|
||||
import { Turnstile } from '@/components/Turnstile'
|
||||
|
||||
const ERROR_KEYS = ['invalidCredentials', 'missingFields', 'invalidRequest', 'captchaFailed'] as const
|
||||
const SITE_KEY = process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY
|
||||
|
||||
export function LoginForm() {
|
||||
const t = useTranslations('Login')
|
||||
@@ -99,7 +98,7 @@ export function LoginForm() {
|
||||
<button
|
||||
type="submit"
|
||||
className="login-button"
|
||||
disabled={busy || (!!SITE_KEY && !captcha)}
|
||||
disabled={busy}
|
||||
>
|
||||
{busy ? t('connecting') : t('submit')}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user