Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- Added new layout and page components for forgot password and signup functionalities, enhancing user experience. - Integrated authentication flow handling for password recovery and account creation, utilizing dynamic metadata. - Updated login form to include links for forgot password and signup, improving navigation between authentication states. - Refactored CSS styles for login components to ensure consistent design across different authentication pages.
27 lines
905 B
TypeScript
27 lines
905 B
TypeScript
"use client"
|
|
|
|
import Link from "next/link"
|
|
import { AuthFlowPage } from "@/components/auth/auth-flow-page"
|
|
import { AUTH_FLOW_SLUGS } from "@/lib/auth/auth-flow-slugs"
|
|
|
|
export function ForgotPasswordPageContent() {
|
|
return (
|
|
<AuthFlowPage
|
|
slug={AUTH_FLOW_SLUGS.recovery}
|
|
defaultTitle="Mot de passe oublié"
|
|
defaultDescription="Indiquez votre adresse e-mail pour recevoir un lien de réinitialisation."
|
|
successTitle="E-mail envoyé"
|
|
successDescription="Si un compte existe pour cette adresse, vous recevrez un e-mail avec les instructions."
|
|
successActionLabel="Retour à la connexion"
|
|
successHref="/login"
|
|
footer={
|
|
<p className="w-full text-center text-sm text-muted-foreground">
|
|
<Link className="font-medium text-primary underline" href="/login">
|
|
Retour à la connexion
|
|
</Link>
|
|
</p>
|
|
}
|
|
/>
|
|
)
|
|
}
|