codeforamerica / bizfriendly-web

An experiment in digital literacy lessons. The experiment is now over.
http://bizfriend.ly
22 stars 67 forks source link

Signup error #229

Open rammandadapu opened 9 years ago

rammandadapu commented 9 years ago

test Signup page is creating account without giving Name and Password. It is validating only for Email ID

aksharjoshi commented 9 years ago

Hi,

The issue is actually with the server side response. When a signup request is made the API http://app.bizfriend.ly/signup

along with data in the format name : 'abc', email : 'abc@abc.com', password : 'xyz'

And on the server side there is a validation on email. Depending on the value of email a response is generated with a valid 200 code or invalid 401 code and the same response value is displayed on client side with an error or success message.

Similar validations should be done on the fields name and password.

and provide the response value accordingly.