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.
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)
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 fragment
Error when trying to login
Navigation drawer when logged in