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:
@@ -13,7 +13,6 @@ const ERROR_KEYS = [
|
||||
'recruiterNotFound',
|
||||
'captchaFailed',
|
||||
] as const
|
||||
const SITE_KEY = process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY
|
||||
|
||||
export function RegisterForm() {
|
||||
const t = useTranslations('Register')
|
||||
@@ -97,7 +96,7 @@ export function RegisterForm() {
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<button type="submit" className="create-button" disabled={busy || !accepted || (!!SITE_KEY && !captcha)}>
|
||||
<button type="submit" className="create-button" disabled={busy || !accepted}>
|
||||
{busy ? t('creating') : t('submit')}
|
||||
</button>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user