As a patient
I want to register with an email and a password
so that I can use data privacy related features like for example assigning a doctor or calculating my insulin dosage
Context
Feature like for example insulin dosage calculation and assigning a doctor need to be secured. This is especially important if you consider the implications it might have if people misuse those features. That is why registration is needed to trace back responsibilities to actual people.
In scope
Adding a new patient user through the app into the db in the backend
GIVEN a patient is not registered yet
WHEN they click on register, enter their email and password and click the register button
THEN they will be registered and can login and a confirmation message appears (see attached sketches)
AC2
GIVEN a patient is already registered with given email
WHEN they click on register, enter their email and password and click the register button
THEN they will be shown a confirmation message without actually creating a new user (security reasons), it will look like they just registered, but they will not have actually registered a new user (see attached sketches)
AC3
GIVEN a patient is not registered
WHEN they click on register, enter nothing in email and password and click the register button
THEN they will get an error message telling them they should at least enter the fields email and password (see attached sketches)
As a patient I want to register with an email and a password so that I can use data privacy related features like for example assigning a doctor or calculating my insulin dosage
Context
Feature like for example insulin dosage calculation and assigning a doctor need to be secured. This is especially important if you consider the implications it might have if people misuse those features. That is why registration is needed to trace back responsibilities to actual people.
In scope
Out of scope
This will be tackled by: https://github.com/diabetes-assistant/documentation/issues/28, https://github.com/diabetes-assistant/documentation/issues/27, https://github.com/diabetes-assistant/documentation/issues/29
Tech notes
Acceptance Criteria
AC1
GIVEN a patient is not registered yet WHEN they click on register, enter their email and password and click the register button THEN they will be registered and can login and a confirmation message appears (see attached sketches)
AC2
GIVEN a patient is already registered with given email WHEN they click on register, enter their email and password and click the register button THEN they will be shown a confirmation message without actually creating a new user (security reasons), it will look like they just registered, but they will not have actually registered a new user (see attached sketches)
AC3
GIVEN a patient is not registered WHEN they click on register, enter nothing in email and password and click the register button THEN they will get an error message telling them they should at least enter the fields email and password (see attached sketches)
Sketches
Register in navigation
Register form
Register confirmation when everything was good
Register fail when there was an error