feat: add login page, project room management, and user persistence#41
feat: add login page, project room management, and user persistence#41hasnaintypes wants to merge 1 commit into
Conversation
|
@hasnaintypes is attempting to deploy a commit to the Sahil Atahar's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@sahilatahar This PR implements the login page, project room management, and user session persistence as described in issue #32. Users can now log in, create and join multiple coding rooms (projects), and their session is persisted using localStorage. |
|
@hasnaintypes Where is registration part? Without registration how login will work? |
I initially understood that the issue referenced the login page, so I assumed they were only referring to the sign-in page. I implemented logic where the system first checks the database; if the user is not found, it will insert the user. Otherwise, it will verify the details and start the login session. This approach combines both functionalities into one process. If you'd prefer separate controllers and pages, I can certainly implement that as well. |
|
@hasnaintypes it's okay but this not how it things actually works if someone have acount and he tried to login and email is wrong it will create new account. So this is not a proper way, you need to seperate registration and login logic. Use zod for validation. |
|
@hasnaintypes Are you still working or not? |
|
I am not working now. I have exams so I am busy with them. |
Feature: Login Page and User Persistence
Overview
This branch implements a robust authentication for Code-Sync, enabling users to log in, manage multiple group projects (coding rooms), and enjoy a personalized experience with persistent sessions and chat functionality.
Features Implemented
Login Page & Authentication
localStoragefor seamless experience across reloads.MongoDB Integration
UserandProjectRoom.Controllers & Routes
Frontend Integration
localStorageand loaded automatically on app start.Personalized Chatting
Technical Highlights
localStoragefor automatic login.Screenshot
Next Steps