dvjsharma / Drawn2Shoe

Drawn2Shoe is a user-friendly e-commerce platform. It offers customers the ability to purchase and personalize their shoes. The platform's intuitive interface ensures seamless navigation and usability across a variety of devices.
MIT License
26 stars 44 forks source link

fix: Customize Page Form Submission Authentication and User Tracking issue: #153 #154

Closed kaali001 closed 1 month ago

kaali001 commented 1 month ago

Description

This PR addresses the issue of form submissions on the Customize page being allowed without user authentication and the absence of user information in the submitted data. The changes ensure that only authenticated users can submit the form, and the user information is included in the data sent to the server for better tracking and communication.

Changes

  1. Client Side :

    • Modified the form to include shoeModel and shoeSize data.
    • Ensured the form submission requires user authentication by checking for user data in the state.
    • Included user information in the data sent to the server for tracking purposes.
  2. Server Side :

    • Updated the createcustomproduct controller to handle additional fields shoeModel and shoeSize.
    • Ensured that the user information is included and stored in the database.
  3. Database Schema :

    • Updated the Design model to include a userId field and establish a relation with the Mainuser model for tracking user information.

Checklist:

dvjsharma commented 1 month ago

Hey @kaali001, I see a conflict in prisma schema file, PTAL and rebase.

kaali001 commented 1 month ago

Hey @kaali001, I see a conflict in prisma schema file, PTAL and rebase.

made the changes, now merge this PR. And please make sure to review PRs and merge ASAP.

dvjsharma commented 1 month ago

Hey @kaali001, I see a conflict in prisma schema file, PTAL and rebase.

made the changes, now merge this PR. And please make sure to review PRs and merge ASAP.

I hope you get that open source projects take time. General waiting period is 1 week