Skip to content

added forgot password option#56

Merged
JiyaBatra merged 1 commit intoJiyaBatra:mainfrom
Aditya8369:55
Mar 26, 2026
Merged

added forgot password option#56
JiyaBatra merged 1 commit intoJiyaBatra:mainfrom
Aditya8369:55

Conversation

@Aditya8369
Copy link
Copy Markdown
Contributor

Updated files:

  • Added forgot link on sign-in page: signin.html
  • Added forgot-password screen: forgot.html
  • Added reset-password screen: reset.html
  • Added forgot/reset logic with localStorage and secure password re-hash: auth.js
  • Added small UI styles for inline link and status messages: auth.css

What the new flow does:

  1. User clicks Forgot Password on signin.html.
  2. On forgot.html, user enters email.
  3. If email matches the stored user, a simulated reset link is shown (demo behavior), and reset email is stored in localStorage.
  4. On reset.html, user enters new password + confirm password.
  5. Password is validated with the same strength rules, then updated in localStorage using the existing hash flow (PBKDF2), and user is redirected to sign in.

Implementation notes:

  • Kept compatibility with your existing secure auth model in auth.js, instead of introducing plain-text password storage.
  • Reset state uses a dedicated localStorage key: passwordResetEmail.
  • Legacy plain-text password field is removed when password reset completes.

Validation:

  • No new JS/HTML errors were reported.
  • Existing CSS Safari compatibility warnings for backdrop-filter remain in auth.css and auth.css (pre-existing, not from this feature).
Screenshot 2026-03-23 183901

closes #55

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 23, 2026

@Aditya8369 is attempting to deploy a commit to the jiya's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Aditya8369
Copy link
Copy Markdown
Contributor Author

@JiyaBatra hello please check this PR and let me know if any changes are required

@JiyaBatra JiyaBatra added JWOC-Level-3 Advanced issues that involve complex implementation or significant feature development. Hard The issue is hard jwoc This project is under jwoc labels Mar 26, 2026
@JiyaBatra JiyaBatra merged commit 207bf5a into JiyaBatra:main Mar 26, 2026
2 of 3 checks passed
@Aditya8369 Aditya8369 deleted the 55 branch March 26, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hard The issue is hard jwoc This project is under jwoc JWOC-Level-3 Advanced issues that involve complex implementation or significant feature development.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add forgot password option

2 participants