-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login / Signup #5
Comments
Please assign this issue to me I want to work on it...:)) @MUDITJAINN |
@MUDITJAINN I would love to work on this issue. |
@aditya-gup780 go ahead!! |
Hi! If there are anymore issues, I would love to work on it @MUDITJAINN |
@shreyansh1410 new features and issues are always welcome. |
Updates? |
Hi @MUDITJAINN please check issue #16 |
extremely sorry I'm currently working on some other project and cannot find time for it plz assign this issue to someone else...or else I will work after sometime... |
The website currently lacks a login and signup functionality, which is essential for providing personalized experiences and saving user preferences, such as Dosha analysis results, chat history, and selected wellness plans. Implementing a secure and user-friendly authentication system will allow users to create accounts, log in, and manage their profiles.
Expected Behavior:
Signup: Users should be able to create an account by providing basic details such as email, username, and password. Passwords must be securely hashed before storage.
Login: Returning users should be able to log in with their credentials (email and password) and gain access to their personalized settings and previous interactions.
Validation: Both signup and login forms should include client-side and server-side validation to prevent invalid input (e.g., weak passwords, incorrect email format).
Error Handling: Proper error messages should be displayed for common issues such as "User already exists" during signup or "Incorrect credentials" during login.
Session Management: Upon successful login, the user session should persist across different pages, and the session should expire upon logout.
Security: The system should use secure authentication mechanisms (e.g., JWT for token-based authentication) to protect user data and prevent unauthorized access.
Use a combination of Node.js, Express.js, and MongoDB for backend authentication, and implement the frontend forms in React. Store encrypted user passwords in the database and manage user sessions with JWT tokens. Use React state or context to manage the user session on the frontend, ensuring seamless navigation after login. Integrate form validation and display proper error messages for user feedback.
The text was updated successfully, but these errors were encountered: