All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 5s
- Auth layout: warm background with brand-accent/ochre orbs, header with Globe + Momento branding - Login form: serif heading, icon-inputs with focus transitions, uppercase labels, submit with arrow - Register form: matching card style with User/Mail/Lock icons, confirm password field - Forgot password: matching card with email icon, success state with mail icon - Reset password: matching card with Lock icons, invalid link state with AlertCircle - All text via i18n (new keys: welcomeBack, createYourSpace, forgot, etc.) - Dark mode support via CSS variables - Removed shadcn Card/Button/Input dependencies from auth forms
15 lines
433 B
TypeScript
15 lines
433 B
TypeScript
import { RegisterForm } from '@/components/register-form';
|
|
import { getSystemConfig } from '@/lib/config';
|
|
import { redirect } from 'next/navigation';
|
|
|
|
export default async function RegisterPage() {
|
|
const config = await getSystemConfig();
|
|
const allowRegister = config.ALLOW_REGISTRATION !== 'false' && process.env.ALLOW_REGISTRATION !== 'false';
|
|
|
|
if (!allowRegister) {
|
|
redirect('/login');
|
|
}
|
|
|
|
return <RegisterForm />;
|
|
}
|