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:
@@ -5,7 +5,6 @@ import { useTranslations } from 'next-intl'
|
||||
import { Turnstile } from '@/components/Turnstile'
|
||||
|
||||
const ERROR_KEYS = ['invalidEmail', 'captchaFailed'] as const
|
||||
const SITE_KEY = process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY
|
||||
|
||||
export function RecoverForm() {
|
||||
const t = useTranslations('Recover')
|
||||
@@ -65,7 +64,7 @@ export function RecoverForm() {
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<button type="submit" className="recover-button" disabled={busy || (!!SITE_KEY && !captcha)}>
|
||||
<button type="submit" className="recover-button" disabled={busy}>
|
||||
{busy ? t('sending') : t('submit')}
|
||||
</button>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user