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
+5
View File
@@ -0,0 +1,5 @@
import ForgotPasswordForm from "@/components/auth/forgot-password-form"
export default function ForgotPasswordPage() {
return <ForgotPasswordForm />
}
+5
View File
@@ -0,0 +1,5 @@
import LoginForm from "@/components/auth/login-form"
export default function LoginPage() {
return <LoginForm />
}
+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>
)
}