feat: add login, forgot password, and reset password forms

This commit is contained in:
2026-04-26 01:27:17 +08:00
parent 284a4c1076
commit 8c6e326bad
6 changed files with 583 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { Suspense } from "react"
import ResetPasswordForm from "@/components/auth/reset-password-form"
import { redirect } from "next/navigation"
interface PageProps {
searchParams: Promise<{ email?: string }>
}
export default async function ResetPasswordPage({ searchParams }: PageProps) {
const { email } = await searchParams
if (!email) {
redirect("/forgot-password")
}
return (
<Suspense>
<ResetPasswordForm email={email} />
</Suspense>
)
}