boolean-uk / team-dev-server-ex-2410-team3

0 stars 0 forks source link

31 api endpoint : post user #29

Open MayraMahamud opened 1 month ago

MayraMahamud commented 1 month ago

Tested in Insomnia with this { "firstName": "string", "lastName": "string", "email": "string", "githubUrl": "string", "bio": "string", "password": "string" }

Badde00 commented 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

maaxolofsson commented 1 month ago

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

sebgro98 commented 1 month ago

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

sebgro98 commented 1 month ago

Jag får att ingen validation fungerar förutom den som kontrollerar att användaren inte kan ha samma mail