@@ -1,10 +1,10 @@
|
||||
'use client';
|
||||
import EmailAuthForm2 from '@/app/auth/email2/auth-form';
|
||||
import EmailAuthForm1 from '@/app/auth/email2/auth-form';
|
||||
|
||||
export default function RegisterPage() {
|
||||
return (
|
||||
<div className='container w-full py-8 sm:w-[496px]'>
|
||||
<EmailAuthForm2 isRedirect={true} />
|
||||
<EmailAuthForm1 isRedirect={true} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*import { GlobalMap } from '@/components/main/global-map';
|
||||
import { Hero } from '@/components/main/hero';
|
||||
import { ProductShowcase } from '@/components/main/product-showcase/index';
|
||||
import { Stats } from '@/components/main/stats';*/
|
||||
import Header from '@/components/Header/Header';
|
||||
import { queryUserInfo } from '@/services/user/user';
|
||||
import { cookies } from 'next/headers';
|
||||
|
||||
import EmailAuthForm2 from '@/app/auth/email2/auth-form';
|
||||
import { LoginDialogProvider } from '@/app/auth/LoginDialogContext';
|
||||
import FooterCopyright from '@/components/main/FooterCopyright';
|
||||
import FullScreenVideoBackground from '@/components/main/FullScreenVideoBackground';
|
||||
|
||||
export default async function Home() {
|
||||
const Authorization = (await cookies()).get('Authorization')?.value;
|
||||
|
||||
if (Authorization) {
|
||||
let user = null;
|
||||
try {
|
||||
user = await queryUserInfo({
|
||||
skipErrorHandler: true,
|
||||
Authorization,
|
||||
}).then((res) => res.data.data);
|
||||
} catch (error) {
|
||||
console.log('Token validation failed:', error);
|
||||
}
|
||||
|
||||
if (user) {
|
||||
// redirect('/dashboard');
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<LoginDialogProvider>
|
||||
<FullScreenVideoBackground />
|
||||
<Header />
|
||||
<main className='fixed inset-0 z-40 flex items-center justify-center'>
|
||||
<div>
|
||||
<EmailAuthForm2 isRedirect={true} />
|
||||
</div>
|
||||
</main>
|
||||
<FooterCopyright />
|
||||
</LoginDialogProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user