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)
forgot-password
page.tsx
feat(auth): redesign auth pages with two-column layout and add SMTP-gated password reset (#17)
0518d73
4 months ago
9 lines · 373 B
1
import
{
redirect
}
from
"
next/navigation
"
;
2
import
{
getInstanceSettings
}
3
import
ForgotPasswordForm
from
"
./forgot-password-form
4
5
export
default
async
function
6
const
{
raw
7
if
(
raw
.
smtp_enabled
8
return
<
ForgotPasswordForm
/>
9
}
from
"
@/lib/instance-settings
"
;
"
;
ForgotPasswordPage
()
{
}
=
await
getInstanceSettings
()
;
!==
"
true
"
||
!
raw
.
smtp_host
)
redirect
(
"
/login
"
)
;
;