mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
import { CardContent, CardHeader } from "@/components/ui/card";
|
|
|
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
import { ForgotPasswordForm } from "@/components/wrappers/auth/login/forgot-password-form/forgot-password-form";
|
|
import { env } from "@/env.mjs";
|
|
import { CardAuth } from "@/features/layout/card-auth";
|
|
import { redirect } from "next/navigation";
|
|
|
|
export default async function RoutePage(props: { searchParams: Promise<{ callbackUrl: string | undefined }> }) {
|
|
if (env.AUTH_EMAIL_PASSWORD_ENABLED !== "true") {
|
|
redirect("/login");
|
|
}
|
|
|
|
return (
|
|
<TooltipProvider>
|
|
<CardAuth className="w-full">
|
|
<CardHeader>
|
|
<div className="grid gap-2 text-center mb-2">
|
|
<h1 className="text-3xl font-bold">Reset password</h1>
|
|
<p className="text-balance text-muted-foreground">Enter your email address and we'll send you a link to reset your password.</p>
|
|
</div>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<ForgotPasswordForm />
|
|
</CardContent>
|
|
</CardAuth>
|
|
</TooltipProvider>
|
|
);
|
|
}
|