Changes between Version 2 and Version 3 of UseCase03


Ignore:
Timestamp:
01/25/26 18:14:24 (2 weeks ago)
Author:
231035
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase03

    v2 v3  
    22** Initiating actor: Guest **
    33== Description
    4 A guest can browse the system in read-only mode. When the guest tries to perform a restricted action, the system requires authentication. The guest logs in by providing credentials, the system verifies them and starts an authenticated session. After login, the user can perform actions allowed by their role (e.g. client). If login fails, access remains read-only.
     4A guest can browse the system in read-only mode. When the guest attempts to perform a restricted action, the system requires authentication.
     5The guest logs in by providing a username and password. The system verifies the credentials and, if valid, starts an authenticated session. After login, the user can perform actions allowed by their role. If authentication fails, the user remains in read-only mode.
    56== Scenario
    671. Guest goes to the login page.
    782. Guest submits credentials.
    8 3. The guest now becomes a client and can perform actions that are not read-only.
     9{{{
     10SELECT
     11  user_id,
     12  username,
     13  email,
     14  name,
     15  surname
     16FROM users
     17WHERE username = 'client.mila'
     18  AND password_hash = '$2b$12$demoHashedPassword';
     19}}}
    920
    1021