UC.01 – Application login
   Context of Use
Registered user will log into the application and based on the login name the user will be recognized either as a student
   or a teacher
   
 
   Primary Actor
Unlogged user
   
 
   Stakeholders and Interests
   
      - student: intends to log into the application
      
 
      - teacher: intends to log into the application
      
 
   
   
 
   Constraints
   
      - Users' account already exists - not possible to sign in a new account
 
   
   
 
   Preconditions
   
      - User is on the UIS homepage
 
      - No other user is logged in - the upper bar has a black colour and on the right side there is a visible Login option
         of the menu
      
 
   
   
 
   Trigger
User selects the 
Login option from the menu located on the right side of the upper bar
   
 
   Main Success Scenario
   
      - User will select the Login option from the menu located on the right side of the upper bar
 
      - Specific Login Page form will appear
 
      - User will fill his/her login name that already exists (=is registered in the UIS)
 
      - User will enter pass in the password field - the universal password for all users
 
      - User will press the Login button
 
   
   
 
   Postconditions
   
      - UIS determines whether the user is either a student or a teacher by checking the users' login name
 
      - Login option disappears from the top bar menu
 
      - Clickable first and last name of the logged-in user appear in the upper bar on the right
 
      - Logout option appears in the upper bar on the right
 
      - User with student's status sees a Student's view menu, the upper bar is orange
 
      - User with teacher's status sees a Teacher's view menu, the upper bar is dark green
 
      - Overview page appears to both Student and Teacher
 
   
   
 
   Alternative Flows
   
      - 5a.
            Selected login name does not exist in the UIS
         
            Postconditions:
                  - User is not redirected from the Login Page
 
                  - Error message regarding an unsuccessful login attempt appears
 
               
             
         
         
       
      - 5b.
            User enters other password than a pass
         
            Postconditions:
                  - User is not redirected from the Login Page
 
                  - Error message regarding an unsuccessful login attempt appears
 
               
             
         
         
       
   
   
 
   Technology and Data Variations List
N/A
   
 
   Related Information
   
      - Information regarding all registered users can be displayed by clicking on the Database Contents reference from the
         UIS homepage
      
 
      - If another user needs to be added to the UIS it has to be done by importing data file into the DB (option Export/Import
         DB on the upper bar)