Create register page

This commit is contained in:
2024-05-20 04:13:44 +04:00
parent c3c6820797
commit 2d477644fb
2 changed files with 58 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import {getServerSession} from 'next-auth'
import {redirect} from 'next/navigation'
import RegistrationForm from './form.js'
export default async function RegisterPage() {
const session = await getServerSession()
if (session) {
redirect('/')
}
return <RegistrationForm />
}