Skip to content

Add Forgot Password link on Sign In page#1370

Open
pratyushjha06 wants to merge 5 commits intoCode-A2Z:mainfrom
pratyushjha06:add-forgot-password-link
Open

Add Forgot Password link on Sign In page#1370
pratyushjha06 wants to merge 5 commits intoCode-A2Z:mainfrom
pratyushjha06:add-forgot-password-link

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

@Avdhesh-Varshney
Copy link
Collaborator

@pratyushjha06 Please complete all mentioned changes

@pratyushjha06
Copy link
Contributor Author

@pratyushjha06 Please complete all mentioned changes

Working on it

@Avdhesh-Varshney
Copy link
Collaborator

@pratyushjha06 Are you working on the changes?

Issue was unassigned due to github issue automation workflow. If you are working, ping me. I'll reassign it to you.

@pratyushjha06
Copy link
Contributor Author

@pratyushjha06 Are you working on the changes?

Issue was unassigned due to github issue automation workflow. If you are working, ping me. I'll reassign it to you.

Yes pls reassign am working on it, and will commit the changes soon

@Avdhesh-Varshney
Copy link
Collaborator

I've reassign and set last date to be 4 feb. But complete your changes by today or tomorrow.

@pratyushjha06 pratyushjha06 force-pushed the add-forgot-password-link branch from 3cc9138 to 813d7f6 Compare February 3, 2026 07:48
@pratyushjha06
Copy link
Contributor Author

I've reassign and set last date to be 4 feb. But complete your changes by today or tomorrow.

@Avdhesh-Varshney Done Pls Check

@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
code-a2z Ready Ready Preview, Comment Feb 3, 2026 5:26pm
code-a2z-server Ready Ready Preview, Comment Feb 3, 2026 5:26pm

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.

Try to complete it them today, I'll review in morning.

setSuccess(false);

try {
const response = await fetch('http://localhost:8000/api/auth/forgot-password', {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Write the api call inside /infra/rest folder - according to auth directory.

Before writing, please take a look on implementation / use case of api call function.

return sendResponse(res, 400, 'Email is required');
}

// TODO: Check if user exists in database
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are there a commented for TODOs?
All these changes required, implement & keep it.

@Avdhesh-Varshney
Copy link
Collaborator

image

@pratyushjha06 Box bg is already red and text is also red.

Have you test everything? Please share me a full working video from entering email to resetting password.

@Avdhesh-Varshney
Copy link
Collaborator

@pratyushjha06 Bro try to complete it by today. Is it possible?

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