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>
This commit is contained in:
@@ -1,17 +1,32 @@
|
||||
import type { Metadata } from 'next'
|
||||
import { getTranslations, setRequestLocale } from 'next-intl/server'
|
||||
import { PageShell } from '@/components/PageShell'
|
||||
import { RegisterForm } from './RegisterForm'
|
||||
|
||||
export default async function RegisterPage({ params }: { params: Promise<{ locale: string }> }) {
|
||||
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {
|
||||
const { locale } = await params
|
||||
const t = await getTranslations({ locale, namespace: 'Register' })
|
||||
return { title: t('title') }
|
||||
}
|
||||
|
||||
export default async function CreateAccountPage({ params }: { params: Promise<{ locale: string }> }) {
|
||||
const { locale } = await params
|
||||
setRequestLocale(locale)
|
||||
const t = await getTranslations('Register')
|
||||
|
||||
return (
|
||||
<PageShell title={t('title')}>
|
||||
<div className="box-content">
|
||||
<div className="box-content" tabIndex={-1}>
|
||||
<div className="body-box-content info-box-light justified">
|
||||
<p>{t('info')}</p>
|
||||
<p>{t('bnetType')}</p>
|
||||
<p>{t('passwordRule')}</p>
|
||||
<p>{t('emailRule')}</p>
|
||||
<br />
|
||||
<p>{t('activation1')}</p>
|
||||
<p>{t('activation2')}</p>
|
||||
<p>
|
||||
<i className="fas fa-exclamation-triangle"></i> {t('loginHint')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="box-content">
|
||||
|
||||
Reference in New Issue
Block a user