Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ability to register as a user (back end) #23

Open
neraks opened this issue Apr 26, 2016 · 0 comments
Open

Implement ability to register as a user (back end) #23

neraks opened this issue Apr 26, 2016 · 0 comments

Comments

@neraks
Copy link
Member

neraks commented Apr 26, 2016

As a web browser, I want to be able to hit a web endpoint to register as a patient user so that I can start using Record on the Go.

Acceptance criteria 1:
Given I am a web browser
When I hit this end point
Then I want to be able to send the following data:

  • username (max length of 255)
  • password (max length of 255)

Acceptance criteria 2:
Given I am a web browser
When I send a valid username and a valid password to the end point
Then I am added to the database as a patient.

Acceptance criteria 3:
Given I am a web browser
When I send an invalid username or invalid password to the end point
Then I am not added to the database
And Then I receive an error response

Invalid username password criteria:

  • Longer than 255 characters (both)
  • Username is not alpha numeric

Acceptance criteria 4:
Given I am a web browser
When I send my username and password to the end point
Then my data is secure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant