Create register page
This commit is contained in:
@@ -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 />
|
||||
}
|
||||
Reference in New Issue
Block a user