Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- 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.
32 lines
1010 B
TypeScript
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>
|
|
}
|
|
/>
|
|
)
|
|
}
|