Files
NightSpire/web-next/app/[locale]/log-in/page.tsx
T
Inna 20e1d5a6b5 Renombrar /login -> /log-in en toda la web (/login da 404)
Mueve la página de login a /log-in y actualiza todas las referencias (enlace
CONECTAR del header y los redirect de auth de ~45 páginas). /login ahora da 404.
La API /api/auth/login no se toca (solo la ruta de página).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 21:03:31 +00:00

34 lines
1011 B
TypeScript

import { getTranslations, setRequestLocale } from 'next-intl/server'
import { Link } from '@/i18n/navigation'
import { PageShell } from '@/components/PageShell'
import { LoginForm } from './LoginForm'
export default async function LoginPage({ params }: { params: Promise<{ locale: string }> }) {
const { locale } = await params
setRequestLocale(locale)
const t = await getTranslations('Login')
return (
<PageShell title={t('title')}>
<div className="box-content">
<div className="body-box-content centered">
<LoginForm />
<br />
<p>
<Link href="/recover">{t('forgot')}</Link>
</p>
<p>
<Link href="/recover">{t('forgotActivation')}</Link>
</p>
<br />
<p>
{t('newHere')} <Link href="/create-account">{t('createAccount')}</Link>
</p>
<br />
<p className="grey-info2">{t('publicNote')}</p>
</div>
</div>
</PageShell>
)
}