Ghost
New
struxadotcloud
/
struxa
public
Star
0
Fork
0
Code
Issues
0
Pull requests
0
development
1
branch
Go to file
t
Code
struxa
apps
web
src
app
(auth)
register
page.tsx
feat: extended instance settings, social auth, 2FA improvements, encryption
0d30aab
5 months ago
9 lines · 339 B
1
import
{
redirect
}
from
"
next/navigation
"
;
2
import
{
getInstanceSettings
}
3
import
RegisterForm
from
"
./register-form
4
5
export
default
async
function
6
const
{
registrationEnabled
7
if
(
!
registrationEnabled
)
8
return
<
RegisterForm
/>
9
}
from
"
@/lib/instance-settings
"
;
"
;
RegisterPage
()
{
}
=
await
getInstanceSettings
()
;
redirect
(
"
/login
"
)
;
;