diabetes-assistant / documentation

Diabetes Assistant related documentations
MIT License
0 stars 0 forks source link

Simple Registration Patient #16

Closed meandor closed 3 years ago

meandor commented 3 years ago

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-menu

Register form

register

Register confirmation when everything was good

register-confirmation

Register fail when there was an error

register-error

itchie2019 commented 3 years ago

TODO: in AuthService.kt Funktion register einführen