Open amos1969 opened 1 month ago
Where is the information that's coming in validated? I would include the expectation that it is already validated, if that's the case, or that it will be validated at the server layer, or both
Jag skulle tro att du behöver kontrollera lite mer saker, unikt email, att password är rätt antal siffror osv
Jag skulle tro att du behöver kontrollera lite mer saker, unikt email, att password är rätt antal siffror osv @sebgro98
Okej, har vi fått några krav på valideringen som antal siffror på ett lösenord/namn osv och isåfall vart finns de?
The email address must be in a valid format (e.g. abc@abc) The password should not be less than 8 characters in length The password should contain at least one uppercase character The password should contain at least one number The password should contain at least one special character
Dessa är dem ända kraven som finns
Approved
Create a user endpoint with the routing ('/users'). The "app.post" should take in firstname, lastname, email, bio, githubUrl, password from the request body. There should be a function which validates the fields password and email and then create a new user in the database and return a response of 201 with the json-formatted user if successful and a response of 400 if it fails.