Skip to content

Conversation

@adityashibu
Copy link
Member

This pull request includes several changes across multiple files to enhance user management, improve security, and update the frontend to reflect backend changes. The most important changes include adding user selection functionality, updating CORS settings, and integrating real-time updates with Firestore.

Backend Changes:

  • backend/fastAPI.py: Added endpoints to set and get the selected user, and updated the /updates endpoint to return combined updates from devices and users. [1] [2] [3] [4]
  • backend/users.py: Implemented functions to select a user, get the selected user, and retrieve updates. Added persistence for the selected user in a JSON file.

Frontend Changes:

Security Improvements:

  • database/users_db.py: Added password hashing using bcrypt and updated Firestore synchronization logic to handle user data securely.

Configuration Updates:

  • backend/.gitignore: Added selected_user.json to the .gitignore file to exclude it from version control.

@adityashibu adityashibu requested a review from david-g-f March 7, 2025 17:14
Copy link
Contributor

@david-g-f david-g-f left a comment

Choose a reason for hiding this comment

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

Works

@david-g-f david-g-f merged commit 2547545 into PowerHouse-Project:main Mar 7, 2025
7 checks passed
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.

3 participants