saasitive / django-react-boilerplate

DIY Django + React Boilerplate for starting your SaaS
https://saasitive.com
MIT License
596 stars 89 forks source link

Form field validation not working due to typo (400 Bad Request) #16

Open Dan1ell opened 3 years ago

Dan1ell commented 3 years ago

In part 4 of the tutorial, the field validation doesn't fire up when we hit send with empty username and password fields.

In the tutorial code, there is a typo in SignupActions.js on line 23. It says if (error.resposne) {

instead of if (error.response) {

Because of this CREATE_USER_ERROR is never set and later on in the tutorial, when connecting to the api, sending the form with empty fields results in a 400 Bad Request response.