Skip to content

Conversation

@pratyushjha06
Copy link
Contributor

Pull Requests Review Criteria

Caution

PRs that fail to meet these review standards will be automatically flagged and may be rejected by maintainers.

  • Filled out this PR template properly
  • Did not commit directly to main
  • Limited commits (max 3–4 unless permitted by Admin/Mentors)
  • Added comments in complex parts of code

Closes: #1277

Describe the add-ons or changes you've made 📃

Added a "Forgot Password?" link on the Sign In page that redirects users to a password reset page.

Changes:

  • Added the link below the password field (only visible on login, not signup)
  • Created a new reset password page at /reset-password route
  • Styled consistently with existing design
  • Link is right-aligned and has hover effect like other interactive elements

The UI is complete. Backend email functionality will be added separately.

Screenshots 📷

09-22-14.-.Trim.mp4

Note to reviewers (Optional) 📄

@vercel
Copy link

vercel bot commented Jan 26, 2026

@pratyushjha06 is attempting to deploy a commit to the avdheshvarshney's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE.

Copy link
Collaborator

@Avdhesh-Varshney Avdhesh-Varshney left a comment

Choose a reason for hiding this comment

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

@pratyushjha06 use nodemailer to send mail. Create api for this

Comment on lines +84 to +85
Enter your email address and we'll send you a link to reset your
password.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update the text by Enter your email address to receive a link to reset your password.

e.preventDefault();
setLoading(true);

const formData = new FormData(e.currentTarget);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Avoid form data, try to use state management of email

const formData = new FormData(e.currentTarget);
const email = formData.get('email');

// TODO: Implement password reset API call here
Copy link
Collaborator

Choose a reason for hiding this comment

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

Implement api call

import { LoginLazyComponent } from '../components';

// Add lazy loading for ResetPassword component
const ResetPasswordLazyComponent = lazy(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Put it in components/index.tsx and import from there similar to login page

@Avdhesh-Varshney
Copy link
Collaborator

@pratyushjha06 Please complete all mentioned changes

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.

Add "Forgot Password" link on Sign In page

2 participants