Adds some validation to new user registration.

This commit is contained in:
2022-04-21 13:30:44 +02:00
parent af0dcee159
commit df8b553345
9 changed files with 206 additions and 4 deletions

0
backend/requests/gamenights.sh Normal file → Executable file
View File

0
backend/requests/login.sh Normal file → Executable file
View File

2
backend/requests/register.sh Normal file → Executable file
View File

@@ -1 +1 @@
curl -X POST -H "Content-Type: application/json" -d '{"username": "a", "email": "b", "password": "c", "password_repeat": "d"}' localhost:8000/api/register
curl -X POST -H "Content-Type: application/json" -d '{"username": "roflin", "email": "user@example.com", "password": "oreokoekje123", "password_repeat": "oreokoekje123"}' localhost:8000/api/register