You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, we need the log in / sign up form to work, we're a bit late, so hani is done with the forms, what remains now is the functions that will fetch the user data.
to sign up a user, he need to put these infos, (every infos i required):
firstName: String.
lastName: String.
sex: String (its gonna be a drop down, or some radio buttons to check).
date_of_birth: String (basic date input, but the format has to be years-months-days).
location: String (where he lives).
phone: String.
password: String.
covid_19_test: Boolean (if the dude is tested positive to covid19).
to sign in a user, he need to put these infos, (every infos i required):
phone: String.
password: String.
Note: those are the name of the properties you're gonna use in the ... i dunno data {}, it has to follow these nominations.
So basicly this is what has to be done:
Create some function that will fetch the url: /api/auth/signup - POST, to create a user
Create some function that will fetch the url: /api/auth/signin - POST, to get a user
the Result of both these requests if everything is correct, is going to be a json object containing all his infos beside his phone and password.
The text was updated successfully, but these errors were encountered:
XenomShox
changed the title
Sign up / Sign in
Sign up / Sign in fetching
Mar 24, 2020
Hi there, we need the log in / sign up form to work, we're a bit late, so hani is done with the forms, what remains now is the functions that will fetch the user data.
to sign up a user, he need to put these infos, (every infos i required):
to sign in a user, he need to put these infos, (every infos i required):
Note: those are the name of the properties you're gonna use in the ... i dunno data {}, it has to follow these nominations.
So basicly this is what has to be done:
the Result of both these requests if everything is correct, is going to be a json object containing all his infos beside his phone and password.
The text was updated successfully, but these errors were encountered: