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:
- Guest goes to the login page.
- Guest enters their username and password credentials.
- 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'; - The user logs in, the system determines their role (Owner, Sitter, or Admin), and redirects them to their dashboard.
Last modified
3 hours ago
Last modified on 05/08/26 02:50:01
Note:
See TracWiki
for help on using the wiki.
