ultisuite-client/components/auth/reset-password-page-content.tsx
R3D347HR4Y de5b5a60ef
Some checks are pending
E2E / Playwright e2e (push) Waiting to run
feat: enhance authentication and password reset flows with new components and layout
- Replaced LoginForm with LoginPageContent for improved login handling and user experience.
- Introduced ResetPasswordPage and ResetPasswordLayout components to facilitate password reset functionality.
- Added new flow stages for authentication, including PasswordStage and SourceOAuthStage, to streamline user interactions.
- Updated FlowChallengeForm to integrate new stages and improve error handling during authentication processes.
- Refactored existing components to support the new authentication flow structure, enhancing maintainability and user experience.
2026-06-20 01:09:30 +02:00

32 lines
1010 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"
type ResetPasswordPageContentProps = {
flowQuery?: string
}
export function ResetPasswordPageContent({ flowQuery }: ResetPasswordPageContentProps) {
return (
<AuthFlowPage
slug={AUTH_FLOW_SLUGS.recovery}
flowQuery={flowQuery}
defaultTitle="Nouveau mot de passe"
defaultDescription="Choisissez un nouveau mot de passe pour votre compte UltiSpace."
successTitle="Mot de passe mis à jour"
successDescription="Votre mot de passe a été modifié. Connectez-vous pour continuer."
successActionLabel="Se connecter"
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>
}
/>
)
}