wiki:UseCase01

Version 1 (modified by 181201, 4 hours ago) ( diff )

--

Use-case 0001 - Login

Initiating actor: Guest

Other actors: None

Description: A guest wants to access their personalized profile in the system. If the guest attempts to perform a restricted action, they must log in. The guest logs in by providing a username and password. The system verifies the credentials and if valid, starts an authenticated session.

Scenario:

  1. Guest goes to the login page.
  2. Guest enters their username and password credentials.
  3. System checks the database to verify if the credentials exist and if they are correct:
    SELECT 
        user_id, 
        username, 
        email, 
        first_name, 
        last_name 
    FROM users 
    WHERE username = 'owner_bojan' 
      AND password = '$2a$10$hashed_pw_bojan';
    
  4. The user logs in, the system determines their role (Owner, Sitter, or Admin), and redirects them to their dashboard.
Note: See TracWiki for help on using the wiki.