Closed ThaDeveloper closed 5 years ago
Does the username always have to be unique? Or we could have two usernames that have different emails?
Does the username always have to be unique? Or we could have two usernames that have different emails?
Username has to be unique and this has been catered for in the validation. Thanks
What does this PR do?
Description of Task to be completed?
How should this be manually tested?
git clone -b ft-user-signup-validation-161966910 https://github.com/andela/ah-infinity-stones
and$ cd ah-infinity-stones
virtualenv -p python3 venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
to install the dependenciesActivate the env variables by
$source .env
.$ python3 manage.py migrate
$ python3 manage.py runserver
http://127.0.0.1:8000/api/users/
provide inputs in the following format and submit.Note : Provide username that's less than 4 characters or an invalid email or a password that doesn't have a special character, just to see the validations in action.
What are the relevant pivotal tracker stories?
#161966910
Screenshots