## What
Removes `resetOnSuccess={['password']}` from the login form.
## Sentry
- Fixes PHP-LARAVEL-2Y — `TypeError: Failed to construct 'FormData':
parameter 1 is not of type 'HTMLFormElement'.` (6 users, on `/login`)
## Root cause
On a successful login the server redirects to the dashboard, which
**unmounts the login form**. `resetOnSuccess` then fires a form reset,
and Inertia's reset handler constructs `new FormData(ref)` from the form
ref — now stale/null — which throws.
The reset serves no purpose on login (the user navigates away
regardless), so removing it eliminates the crash.
## Tests
- Added `resources/js/pages/auth/login.test.tsx`: renders the login page
and asserts the `<Form>` is not configured to reset on success.
|
||
|---|---|---|
| .. | ||
| confirm-password.tsx | ||
| forgot-password.tsx | ||
| login.test.tsx | ||
| login.tsx | ||
| register.tsx | ||
| reset-password.tsx | ||
| setup-encryption.tsx | ||
| two-factor-challenge.tsx | ||
| verify-email.tsx | ||