Sequence diagrams - xhoelbano/mental_health_platform GitHub Wiki
Login – Sequence diagram
The sequence diagram designed below describes in a detailed view the login action for any user. This is the action performed for authenticating any user who tries to enter the system. It starts with the user filling out the login form with its credentials. The system gets the password and passes it to the system to encrypt and also requests to know the user profile so it can match the appropriate dashboard. After the connection in the database is made and profile is matched and the password is encrypted, the authentication of the credentials is made. An “authenticate” alternative separates the responses in case of a login failure. If user credentials are successful, the profile is authenticated and the user receives the appropriate dashboard.
Account verification – Sequence diagram
The sequence diagram designed and described below demonstrates the registration part of two actors, psychologist and business. The registration part of these two actors is different from the others as it has one extra verification step which is done manually by the administrator. It starts with the psychologist or business entering data into the respective registration form. The data are saved in the database. To verify the administrator requires from the database the data which were recently saved. After getting data, the admin uses them and verifies them. An alternative is used to send the appropriate feedback. In case the account is verified, the database is updated with new information.