Commit ee9736bb by Li Duoyang Committed by GitHub

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
parent 0936e250
...@@ -107,7 +107,7 @@ export function ForgotPasswordForm({ ...@@ -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'} {isActive ? `Resend (${secondsLeft}s)` : 'Send reset email'}
{isLoading ? <Loader2 className='animate-spin' /> : <ArrowRight />} {isLoading ? <Loader2 className='animate-spin' /> : <ArrowRight />}
</Button> </Button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment