feat: add login, forgot password, and reset password forms
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import ForgotPasswordForm from "@/components/auth/forgot-password-form"
|
||||
|
||||
export default function ForgotPasswordPage() {
|
||||
return <ForgotPasswordForm />
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import LoginForm from "@/components/auth/login-form"
|
||||
|
||||
export default function LoginPage() {
|
||||
return <LoginForm />
|
||||
}
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user