Skip to content

feat: add remember me option to login page (Issue #276)#304

Closed
basantnema31 wants to merge 1 commit into
hereisSwapnil:mainfrom
basantnema31:feat/remember-me
Closed

feat: add remember me option to login page (Issue #276)#304
basantnema31 wants to merge 1 commit into
hereisSwapnil:mainfrom
basantnema31:feat/remember-me

Conversation

@basantnema31

Copy link
Copy Markdown

Fixes #276

The Feature:
Added a fully functional "Remember me" checkbox to the login page to allow users to opt for persistent credential retention, as requested in Issue #276.

Implementation Details:

  • Integrated a rememberMe React state linked to a new UI checkbox in Login.jsx.
  • Leveraged react-hook-form's setValue inside a useEffect hook to automatically pre-fill the email and password fields if they are found in localStorage.
  • Updated the loginUser submit handler to either save the credentials to localStorage (if checked) or clear them from localStorage (if unchecked).
  • Styled the checkbox using Tailwind to cleanly match the existing UI layout.

@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.

Feat: Add "Remember Me" Option for Login

1 participant