Ghost

struxadotcloud/struxa

public
Fork0
CodeIssues0Pull requests0
1branch
struxaappswebsrcapp(auth)forgot-passwordpage.tsx
feat(auth): redesign auth pages with two-column layout and add SMTP-gated password reset (#17)0518d734 months ago9 lines · 373 B
1import { redirect } from "next/navigation";
2import { getInstanceSettings }
3import ForgotPasswordForm from "./forgot-password-form
4
5export 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
"
)
;
;