fix: add type="submit" to forgot password form button (#4910)

The "Send reset email" button was missing type="submit", preventing
form submission when clicked. All other auth forms (sign-in, sign-up,
OTP) already have this attribute set correctly.

Closes #4793
This commit is contained in:
Li Duoyang 2026-05-19 01:14:03 -07:00 committed by GitHub
parent 0936e25046
commit ee9736bbc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,7 @@ export function ForgotPasswordForm({
)}
/>
<Button className='mt-2' disabled={isLoading || isActive}>
<Button type='submit' className='mt-2' disabled={isLoading || isActive}>
{isActive ? `Resend (${secondsLeft}s)` : 'Send reset email'}
{isLoading ? <Loader2 className='animate-spin' /> : <ArrowRight />}
</Button>