Skip to content

fix: register password field with react-hook-form to fix signup failure (Issue #277)#301

Closed
basantnema31 wants to merge 1 commit into
hereisSwapnil:mainfrom
basantnema31:fix/signup-password-not-submitted
Closed

fix: register password field with react-hook-form to fix signup failure (Issue #277)#301
basantnema31 wants to merge 1 commit into
hereisSwapnil:mainfrom
basantnema31:fix/signup-password-not-submitted

Conversation

@basantnema31

Copy link
Copy Markdown

Fixes #277

The Bug:
In Signup.jsx, the password field had an onChange handler for tracking password strength but was missing the {...register("password")} call for react-hook-form. As a result, the password was never included in the form data submitted to the server, causing the signup process to silently fail.

The Fix:
Added the missing {...register("password", { required: "Password is required", onChange: handlePasswordChange })} to the password input field, composing it with the existing handlePasswordChange function. This ensures the password is correctly captured and submitted while maintaining the strength indicator functionality.

@vercel

vercel Bot commented May 24, 2026

Copy link
Copy Markdown

@basantnema31 is attempting to deploy a commit to the swapnilsingh99's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @basantnema31! 🎉 Thank you for submitting your pull request. Your contribution is valuable and we appreciate your efforts to improve our project.

We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our contributing guidelines

@basantnema31 basantnema31 closed this by deleting the head repository May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG:Sign up page is redirecting user to sign in

1 participant