Open MayraMahamud opened 1 month ago
You should probably also return a "409 conflict" code and not a general "400 bad request" code when there are duplicate emails
domain/post.js is implemented in another issue: https://github.com/orgs/boolean-uk/projects/21/views/2?pane=issue&itemId=85064856&issue=boolean-uk%7Cteam-dev-server-ex-2410-team3%7C4
Vi behöver mer validation just nu kollar vi endast på om lössenordet är större än 8 chars men vi måste även följa
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
Edit annars verkar allting fungera
Jag får att ingen validation fungerar förutom den som kontrollerar att användaren inte kan ha samma mail
Tested in Insomnia with this { "firstName": "string", "lastName": "string", "email": "string", "githubUrl": "string", "bio": "string", "password": "string" }