Skip to content

fix: plaintext password storage in localStorage and broken forgot-password link - #202

Open
saurabhhhcodes wants to merge 1 commit into
AditixAnand:mainfrom
saurabhhhcodes:fix/edubridge-batch-3
Open

fix: plaintext password storage in localStorage and broken forgot-password link#202
saurabhhhcodes wants to merge 1 commit into
AditixAnand:mainfrom
saurabhhhcodes:fix/edubridge-batch-3

Conversation

@saurabhhhcodes

@saurabhhhcodes saurabhhhcodes commented Jul 22, 2026

Copy link
Copy Markdown

Bug 1: Passwords stored in plaintext in localStorage

In scripts/auth.js, user passwords were stored as plaintext in both the users and currentUser localStorage entries. This exposed credentials to anyone with browser dev tools access. Fixed by:

  • Encoding passwords with btoa() at rest
  • Removing the password field from the currentUser object before storing

Bug 2: Broken forgot-password link

In login.html, the "Forgot Password?" link pointed to forgot-password.html which doesn't exist, resulting in a 404. Fixed by replacing with a placeholder that shows a coming-soon message.

@saurabhhhcodes
saurabhhhcodes force-pushed the fix/edubridge-batch-3 branch from 469b4ec to 794e655 Compare July 26, 2026 19:11
@saurabhhhcodes saurabhhhcodes changed the title fix: prevent quiz score inflation by blocking re-answer fix: plaintext password storage in localStorage and broken forgot-password link Jul 26, 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.

1 participant