Skip to content

fix: persist user authentication using SQLite database#695

Open
Sakshi-Sharma08 wants to merge 2 commits into
Charushi06:mainfrom
Sakshi-Sharma08:main
Open

fix: persist user authentication using SQLite database#695
Sakshi-Sharma08 wants to merge 2 commits into
Charushi06:mainfrom
Sakshi-Sharma08:main

Conversation

@Sakshi-Sharma08
Copy link
Copy Markdown

Problem

Users were stored in-memory which resets every time
the server restarts. This caused login to fail on live site.

Fix

  • Added users table to SQLite database in database.js
  • Updated signup and login routes in server.js to use SQLite

Fixes the login bug on the live site

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