Forgot password
BlockA password reset request, with a confirmation that does not leak account existence.
- Authentication
- 5 components
- 1 file
Loading the example…
pnpm dlx @dowel-ui/cli add forgot-passwordimport { ForgotPasswordBlock } from "@/components/blocks/forgot-password"; export default function Page() { return <ForgotPasswordBlock />;}<ForgotPasswordBlock>
| Prop | Type | Default |
|---|---|---|
error | string | — |
loginHref | string | "/login" |
onSubmit | (values: { email: string }) => void | — |
pending | boolean | false |
sentSwitches to the confirmation view. | boolean | false |
className | string | — |
The confirmation replaces the form, so it is a polite live region — otherwise a screen reader user submits and hears nothing. The wording is deliberately neutral about whether the address exists: confirming it would turn this form into an account enumeration oracle.