Open-Code-Crafters / FitFlex

FitFlex is a fitness and weight loss website offering daily, structured workout plans for a set period. Users can follow day-wise exercises tailored to their goals, whether for weight loss, muscle gain, or general fitness. With a simple, user-friendly interface, FitFlex helps track progress and stay consistent throughout their fitness journey.
https://befiteveryday.netlify.app
MIT License
53 stars 88 forks source link

The Register Form not coded properly #234

Open samar12-rad opened 1 week ago

samar12-rad commented 1 week ago

Is there an existing issue for this?

Feature Description

The current Register.jsx, doesnt create the user. It just stores the emailId of the user currently. image

Use Case

The Register form only handles email right now, All the other details on the page are useless if not implemented. I will redesign the form so that the user successfully registers with all the data.

Benefits

No response

Add ScreenShots

image

Priority

High

Record

GAVINESHWAR commented 6 days ago

@samar12-rad , not required closed as complete

samar12-rad commented 6 days ago

@GAVINESHWAR , I am currently creating profile page, but for that, someinfo is needed which is entered in the form but not sent to the database .

GAVINESHWAR commented 4 days ago

@GAVINESHWAR , I am currently creating profile page, but for that, someinfo is needed which is entered in the form but not sent to the database .

could you please elaborate the issue

samar12-rad commented 4 days ago

I currently have an issue assigned to create profile page which will show details of user like - Profile picture, name , username, dob, height , weight , bmi, gender, phonenumber, etc.

But the user database doesn't have all these data, even when you enter it while registering. This is because the handling of register button is not done properly. The only data that gets an user registered is email and password.

how the submit is handled. image

how data is stored in firebase image As you can see, only email and password is currently present, even though a user registers with all his details.

A proper database is needed to be created to be created in order to keep user's information for use on the website. Furthermore, the register code is to be modified to be incorporate to send all the data to the database for future retrieving. The firebase code is also need to be modified to define the schema of the user data.