Skylar-Lorena / tasklist-2.0

Simple task list to demonstrate CRUD actions, props, components and state in React.
https://tasklist-2-0.vercel.app/
0 stars 2 forks source link

Implement User Authentication Functionality #5

Open festus-sulumeti opened 2 months ago

festus-sulumeti commented 2 months ago

This PR addresses the implementation of user authentication functionality for our application, which includes the development of three core components: Login, Signup, and Profile. Each component has been designed to handle user interactions effectively while integrating with our authentication service.

Components Developed

  1. Login Component

    • Created a Login component in src/components/.
    • Implemented form fields for username/email and password.
    • Added a submit button to trigger the login process.
    • Included a link to the Signup page for new users.
    • Integrated with the authentication service to manage login requests.
    • Implemented form validation to ensure required fields are filled and the email format is correct.
    • Displayed error messages for authentication errors (e.g., incorrect username/password).
  2. Signup Component

    • Created a Signup component in src/components/.
    • Implemented form fields for username, email, and password.
    • Added a submit button to trigger the signup process.
    • Included a link to the Login page for existing users.
    • Integrated with the authentication service to manage signup requests.
    • Implemented form validation to ensure all fields are filled correctly, the password meets strength requirements, and the email format is valid.
    • Displayed error messages for invalid signup attempts (e.g., username already taken, weak password).
  3. Profile Component

    • Created a Profile component in src/components/.
    • Displayed the current user's profile information (e.g., username, email).
    • Added form fields to allow users to update their information.
    • Included a submit button to save updates.
    • Integrated with the authentication service to fetch and update user profile data.
    • Implemented form validation for updated information.
    • Displayed error messages for any issues encountered while updating the profile.

Authentication Service Integration

Testing

Acceptance Criteria

Related Issue

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tasklist-2-0-1gil ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2024 1:58pm