diabetes-assistant / documentation

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

Simple login Patient #17

Closed meandor closed 3 years ago

meandor commented 3 years ago

As a patient I want to login in the app so that I can use restricted areas like for example assign a doctor and use these features

Context

Patients are using the app. They can use the app to manage their data and confirm doctor assignments. The app is their main channel for getting a insulin dosage recommendation.

In scope

Out of scope

There are follow up stories for that: https://github.com/diabetes-assistant/documentation/issues/16, https://github.com/diabetes-assistant/documentation/issues/28

Tech notes

Acceptance Criteria

AC1

GIVEN a patient is not logged in yet WHEN they login using their login data THEN their user data is shown in the navbar and login will no longer appear in the navbar

AC2

GIVEN a patient is not logged in yet WHEN they they enter login data that is not correct THEN a warning will appear notifying them the login credentials were incorrect, not telling them which one (security feature)

AC3

GIVEN a patient is not registered WHEN they click on login, enter nothing in email and password and click the login button THEN they will get an error message telling them they should at least enter the fields email and password (see attached sketches)

Sketches

Navigation drawer without being logged in

login-navbar

Login fragment

login-form

Error when trying to login

login-error

Navigation drawer when logged in

login-navbar-logged-in